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
7
votes
1 answer

R Shiny - How to update a dependent reactive selectInput before updating dependent reactive plot

App Structure I have a Shiny app with the typical sidebar panel + mainpanel structure. Sidebar panel: There are multiple selectInput widgets within the sidebarpanel, where the choices within each selectInput are dependent upon the previous…
trippy
  • 130
  • 5
7
votes
1 answer

Would watch() in Vue3 stop automatically at component unmounted?

According to Vue3 Doc, watchEffect will stop when a component is unmounted. When watchEffect is called during a component's setup() function or lifecycle hooks, the watcher is linked to the component's lifecycle and will be automatically stopped…
mannok
  • 1,712
  • 1
  • 20
  • 30
7
votes
1 answer

Project Reactor: Flux Timeout only if first item is not emitted

I have a flux that should emit an item almost immediately. After this, it may not emit an item for a long period of time. I want it to timeout if no item is initially received. But if I use the timeout(Duration) method, it will timeout every time no…
Stan Ostrovskii
  • 528
  • 5
  • 19
7
votes
1 answer

How to process each product one by one with incremental progress update using Spring reactive?

I need help on Spring Reactive where a rest call posts list of Json objects and spring boot server should send the processing events one by one. Let me explain in brief with an example. Let us take there are 20 products in the Front-end UI, user…
Sambit
  • 7,625
  • 7
  • 34
  • 65
7
votes
3 answers

How to set connections-per-host setting in MongoClientSettings?

Blocking MongoDB driver has MongoClientOptions, which contains client settings. Reactive driver's MongoClients.create() expects MongoClientSettings as parameter. Most settings from MongoClientOptions have their equivalent in MongoClientSettings. …
alper
  • 322
  • 2
  • 14
7
votes
0 answers

WebTestClient blocks in unit test when controller returns a EmitterProcessor instead of Flux

I am working on a project that uses the Spring WebFlux stack. We have a Controller where you can subscribe for updates on a specific object. This Controller returns an EmitterProcessor where clients can subscribe to. When something is published on…
Geert Graat
  • 145
  • 3
  • 10
7
votes
1 answer

Create derrived collection of ViewModels with DynamicData which updates existing item instead of creating a new one on source item change

For example, I have an observable of some collections which indicates statuses of objects (I get it periodically through REST API). class User { int Id { get; } string Name { get; } string Status { get; } } IObservable source; I…
Paboka
  • 422
  • 1
  • 5
  • 15
7
votes
3 answers

RxSwift. Execute separate Observables sequently

I'm trying to achieve my Observables to execute only when previous Observable has completed. I can't use flatMap, because subscriptions can be called from different places, and this Observables is not connected with each other. To be specific: I…
KY1VSTAR
  • 395
  • 4
  • 16
7
votes
1 answer

Can I consume a non-reactive REST API service using the Spring 5 WebFlux WebClient?

I have a written a microservice using Spring 5 WebFlux and trying to consume a non-reactive REST API through it. Is it possbile to consume a non-reactive service using a reactive webclient?
Vinod Kumar
  • 665
  • 3
  • 13
  • 31
7
votes
1 answer

WebFlux and Kotlin corountines without ReactiveCrudRepository

I'm working on a project which is using Kotlin, Spring Boot, Hibernate (all on latest version) and I would like to make it reactive with WebFlux framework from Spring. Problem is that I can't use ReactiveCrudRepository because web app have to use…
Lukas Forst
  • 802
  • 1
  • 8
  • 25
7
votes
1 answer

Project Reactor conditional execution

I have an object to save (to MongoDB), but before it I need to check if some conditions are true. Object contains IDs to other objects. It looks like "object": { "id": "123", "subobject1": { "id": "1" }, "subobject2": { "id": "2"…
7
votes
2 answers

r shiny: eventReactive is not reacting when the button is pressed

Below is my code. It might seem a bit long but actually it's a VERY simple app. The user is supposed to upload a tiny data frame (x.csv if you are in the US or x_Europe.csv if you are in Europe). Then the user should click on the button to start…
user3245256
  • 1,842
  • 4
  • 24
  • 51
7
votes
3 answers

Spring Web Reactive Framework Multipart File Issue

I'm trying to implement and image upload using Spring's Reactive Framework by trying the following: @RestController @RequestMapping("/images") public class ImageController { @Autowired private IImageService imageService; …
Joel Holmes
  • 943
  • 2
  • 12
  • 23
7
votes
1 answer

Shiny dynamic content based on window size (like css media query)

I have some plots in a panel. I want to change them into tabsetpanel when the window width is small. Is there any way in shiny to determine window width of browser. For example, in the following example, how can I switch uiOutput from plotPanel1 to…
TheRimalaya
  • 4,232
  • 2
  • 31
  • 37
7
votes
1 answer

Reactive CSS properties in R Shiny

I would like to selectively control font-scaling with a slidebar. Is this possible? I've attached an MRE that I believe demonstrates where I'm stuck and what I'm trying to achieve. if(!require('pacman')) {install.packages("pacman")} # Ensures that…
RTS
  • 882
  • 1
  • 8
  • 13