Questions tagged [reactive]

The reactive tag refers to a variable type and environment used inside Shiny applications based in the R programming language. Reactive elements are dynamic and changing over time usually due to user input to the Shiny application. This tag should be used with questions and errors regarding how to refresh, update, assign, and access user inputs into Shiny. The reactive tag is to be used in conjunction with the r and shiny tag.

2049 questions
4
votes
1 answer

ReactiveQuerydslPredicateExecutor Pagination for Reactive WebFlux

I'm trying out the new ReactiveQuerydslPredicateExecutor in my project but i can't find a method for findAll(Predicate, Pageable) like i had in QueryDslPredicateExecutor Is this intentional? Does it mean for reactive it's not recommended to use…
user1955934
  • 3,185
  • 5
  • 42
  • 68
4
votes
2 answers

How can I make UI respond to reactive values in for loop?

I'm making a shiny app which reads from a file, does some processing, and produces a table in the UI. The problem is that the file may be very big, and the analysis is slow, so processing the table may take a long time (often several minutes,…
thejbug
  • 41
  • 4
4
votes
1 answer

How to retrieve a generated ID when saving objects with Spring Data R2DBC using Postgresql

Could you please help me to solve the problem below I have a entity class: @Data @AllArgsConstructor @NoArgsConstructor public class User { @Id private Long id; private String name; } and I save it in Postgresql with the code: public…
Khai Ly
  • 135
  • 3
  • 7
4
votes
2 answers

Is there @KafkaListener in Reactor/Reactive Kafka?

I wish to write Reactive Kafa to listen on new coming message. But I don't know how to do that. Like @KafkaListener in blocking Kafka - it's waiting for new message The code demo on Spring Boot Webflux and Reactor Kafka: public class KafkaConsumer…
Khai Ly
  • 135
  • 3
  • 7
4
votes
1 answer

How to iterate over Flux and use result from another Mono to filter the Flux

Mono mono1 = repository.get(id); // data from reactive mongo Flux availabilityInfo = getAvailabilityInfo(); // blocking I/O call What I am trying to achieve is iterate availabilityInfo and need to apply some conditions using mono…
akreddy.21
  • 626
  • 3
  • 8
  • 21
4
votes
1 answer

Flux Not showing in Thymeleaf if Spring Web Security is enabled

I'm trying to show a Flux of Strings from my Controller to a view in Thymeleaf but i'm getting just a ReactiveDataDriverContextVariable on the view I'm using Spring boot 2 This is my controller code @GetMapping("/demo") fun demo(model: Model):…
Cyberdev
  • 41
  • 6
4
votes
6 answers

Generate a stream with delays for each emit in dart

I want to emit values in a stream from a list with a specific delay in dart. So, from [1,2,3], which is a regular List I want to emit values like 1...2...3 in separated events. I tried something like this List myList = [1,2,3]; Subject _current…
David
  • 3,364
  • 10
  • 41
  • 84
4
votes
1 answer

Get "error: could not find function" in Shiny relating to reactive expression

I am trying to return a character vector created in a reactive expression in Shiny. However, when I run the app, I get the following: Error: could not find function "check_case" check_case is a reactive expression, not a function. I can see a…
Jaccar
  • 1,720
  • 17
  • 46
4
votes
2 answers

Spring Kotlin : Bean fields are null at runtime despite being injected during instantiation

I am giving a try to Spring Kotlin support and I want to achieve the following simple DAO pattern inside a Spring Boot application (Using Spring reactive features, generated thanks to the Spring Initializr website) : @Document data class Person(val…
Irios
  • 81
  • 6
4
votes
2 answers

Angular reactive custom validator not working

I wrote a simple validator comparing two date form controls on a form group. Simple check: the maturityDate must be > than valueDate, if not invalidate the form group. Below is the definition of the form group: this.datesForm = this._fb.group( …
baouss
  • 1,312
  • 1
  • 22
  • 52
4
votes
0 answers

Angular - format input value in reactive form

I have an input in my reactive form which uses the currency pipe. When I reset the form to its initial values, without having changed this price value, it loses the format. If I've changed the currency value previously, the update gets done…
Leones24
  • 73
  • 2
  • 8
4
votes
1 answer

Shiny: overwriting rhandsontable, invalid (NULL) left side of assignment

In Shiny App, I want to read a table from my local, display it as an rhandsontable, and overwrite one of the columns with Sys.Date(), and display the updated table as rhandsontable. the table function_table looks like this. client fun …
Makoto Miyazaki
  • 1,743
  • 2
  • 23
  • 39
4
votes
4 answers

RxJS - detect long mousedown

I want to detect when mousedown is being fired for longer than 500ms, if so - do something. My attempt: const button = document.querySelector('button') const stream = Rx.Observable.fromEvent(button, 'mousedown') const mouseUp$ =…
feerlay
  • 2,286
  • 5
  • 23
  • 47
4
votes
2 answers

Custom deserialization of path variable in spring web starter

What is the correct way to register a custom deserializer for a path variable in Spring web reactive? Example: @GetMapping("test/{customType}") public String test(@PathVariable CustomType customType) { ... I tried ObjectMapperBuilder, ObjectMapper…
Journeycorner
  • 2,474
  • 3
  • 19
  • 43
4
votes
1 answer

Shiny real-time url data does not update

I am reading in real-time data from two urls into Shiny and display the last most updated 8 records. However, the data are not the most updated in Shiny, i.e. displaying previous days' records, inconsistent with real-time records from the…
Jane
  • 579
  • 5
  • 17