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
2 answers

Vue3 reactivity lost when using async operation during object creation

I'm working with some objects (classes) in my TS codebase which perform async operations right after their creation. While everything is working perfectly fine with Vue 2.x (code sample), reactivity breaks with Vue3 (sample) without any errors. The…
Ábel Énekes
  • 237
  • 1
  • 10
4
votes
1 answer

HTTPS urls cause NPE when using Jetty Http Client Reactor

When using Jetty Http client v9.4.34.v20201102 with jetty-reactive-httpclient 1.1.4 and spring-webflux 5.2.2, sslContextFactory is passed to the HttpClient constructor: import org.eclipse.jetty.util.ssl.SslContextFactory.Client; import…
Fedor
  • 559
  • 1
  • 7
  • 19
4
votes
2 answers

Forcing render order in R Shiny

I'm relatively new to R Shiny and reactive programming. From my understanding (and this tutorial), it seems like you are not supposed to tell Shiny "when" to do things (i.e. to enforce execution order) as it will figure that out itself. However,…
antsatsui
  • 151
  • 1
  • 4
4
votes
0 answers

Spring Cloud Custom GatewayFilter - Modify Response POST filter with results from another client request inside filter

I have a POST Gateway filter that I want to modify the response body with the response of a separate webclient request within the gateway filter. I am able to get as far as sending the WebClient().create().post().exchange() within my custom filter.…
4
votes
3 answers

In Rxjs How to pause a stream of data and continue from the second It was paused?

I have a stream of data being long polled every 10 seconds. Long pol can be paused and be continued. Problem is: It starts over when It continues. I have to make It continue from the second It was paused. So if: delay(10000) paused at (7000) Then…
Oguzhan
  • 724
  • 6
  • 12
4
votes
1 answer

RSocket + webflux request-response resilience

Given the following code (using Spring Webflux and RSocket): @MessageMapping("hello.{name}") public Mono greet(@DestinationVariable String name) { return Mono.just("Hello " + name); // or assume this is making a slow http call } The…
Riko Nagatama
  • 388
  • 1
  • 3
  • 15
4
votes
1 answer

Multiple dynamic filter updates in shiny

I want to be able to have UI inputs in shiny that update themselves based on the previous choices of a user. So in the example below, the intended behavior would be that the user chooses from cyl, vsor carbwhich will then filter the dataset…
Joschi
  • 2,941
  • 9
  • 28
  • 36
4
votes
0 answers

How to query SQL database in shiny app using a reactive expression with multiple inputs from shiny::seletctInput()

I am (very) new to shiny and am trying to create an app where the user can input their choice of one or more options, with their input choice then being used to query an SQL database. For example, if the user selects ‘Dublin’ or ‘Aberdeen’ the app…
4
votes
1 answer

Lightbend Reactive Architecture Certification

Does anyone know this certification? Opinions? https://www.lightbend.com/certified-reactive-architect
4
votes
4 answers

Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException using ReactiveRedisTemplate

I am new to Reactive Programming. i need to connect to Redis to save and get some data. The redis instance is present in cloud. Am using Lettuce Connection factory to establish the connection. when establishing the connection to redis, the request…
4
votes
1 answer

Flutter application/stream+json Content-Type

I'm trying to make an Http Client call in flutter with content-type:application/stream+json and accept: application/stream+json,in order to use reactive response from the backend but this is what the response looks like: {"name":"bobby", "lastname":…
Stukz
  • 51
  • 3
4
votes
2 answers

Spring boot reactive WebClient calling legacy endpoint

In a Spring Boot (2.2.2.RELEASE) application, I have reactive endpoints (returning Mono or Flux), each of them is using reactive WebClient for calling another service. This "other" service is legacy (non-reactive) one. Here is my question: Is there…
4
votes
0 answers

Creating a Monix Observable from a NuProcess ByteBuffer

So I have a current project that uses Java Process and I am trying to replace it with NuProcess (i.e. https://github.com/brettwooldridge/NuProcess). For dealing with Java Process's STDOUT/STDERROR you have had an InputStream and since Monix provided…
mdedetrich
  • 1,899
  • 1
  • 18
  • 29
4
votes
1 answer

CompletionStage, CompletableFuture Void - what to return?

Here is my method : public CompletionStage insert(List hashActionList) { if(!hashActionList.isEmpty()) { return ... } // what to return here ? } I have no idea of what to return if my list is empty. Not sure…
maxday
  • 1,322
  • 1
  • 16
  • 32
4
votes
1 answer

What is the difference between merge and flatmap operator in RxSwift

I am currently new to RxSwift and I am a little bit confused about the flatMap and merge operator. I know the merge operator merges more than one observable into a single observable. I feel that flatMap is doing the same thing.Am I wrong? If so what…
Ahmed
  • 1,229
  • 2
  • 20
  • 45