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

RxSwift observe changes of properties in custom objects in a collection

How would you observe changes of custom properties of custom objects in a collection?
WYS
  • 1,637
  • 2
  • 16
  • 37
7
votes
2 answers

using "reactive native" with our existing code

I wrote my app using native method, currently I want to use reactive native in our further development to avoid writing two copies of code for iOS and Android. The problem is we can't completely rewrite all the code, we want to replace the project…
Bin Chen
  • 61,507
  • 53
  • 142
  • 183
6
votes
2 answers

Dynamically create editable DT in shiny app

I want to create an app that has the following flow: The user selects some data groups Those groups become dynamic tabs, with each of those tabs containing a subset editable DT with the respective group Each tab contains an additional reactive DT…
LMc
  • 12,577
  • 3
  • 31
  • 43
6
votes
1 answer

Booting an Hibernate Reactive serviceregistry on a non-reactive RecordedState

I'm trying to migrate to the Quarkus Hibernate Reactive dependencies, so I commented out the old ones and added the new reactive dependencies: //implementation 'io.quarkus:quarkus-agroal' //implementation…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
6
votes
1 answer

how to convert a Flux list into a List
I have a Flux and I want to convert it to List. How can I do that? Flux getInstances(String serviceId); // Current one List getInstances(String serviceId); // Demanded one Java 8 or reactive components have a prepared method to…
Tonyukuk
  • 5,745
  • 7
  • 35
  • 63
6
votes
1 answer

Reactive Forms typescript CKEDITOR CustomValueModule

I am trying to convert this CustomValueModule into a CKEDITOR control but I am getting a error that the tag is not support. The Component template is a div tag so I am not sure why I am getting this…
Jefferson
  • 173
  • 2
  • 12
  • 32
6
votes
3 answers

Testing reactive repository java.lang.AssertionError: expectation "assertNext" failed (expected: onNext(); actual: onComplete())

I'm writing a simple reactive app, using spring5 and mongo reactive repositories. I wanted to test repos, followed tutorials, but still have problem: java.lang.AssertionError: expectation "assertNext" failed (expected: onNext(); actual:…
antonina18
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

Return null or something nullable from lambda in transformation mehtod WebFlux

In a Spring WebFlux chain I use a map operation which sometimes may return null and I get a warning : Return null or something nullable from lambda in transformation mehtod. I believe when data is null it doesn't actually map input to null but it…
alizeyn
  • 2,300
  • 1
  • 20
  • 30
6
votes
1 answer

Spring Cloud Stream multiple function definitions

Is it possible to have reactive SCS application using functional (spring.cloud.function) style with multiple, separate functions / bindings? All examples I have found always register only one functional bean with default bindings input, output. I…
B.Gen.Jack.O.Neill
  • 8,169
  • 12
  • 51
  • 79
6
votes
1 answer

Value of type * has no member 'rx'

I'm trying to make a small reactive wrapper for ImageDownloader from AlamofireImage: import Foundation import UIKit.UIImage import AlamofireImage import RxCocoa import RxSwift extension Reactive where Base: ImageDownloader { public func…
swearwolf
  • 327
  • 3
  • 10
6
votes
0 answers

Pausing function in order to wait for user input from modal, Shiny

I have a dialogue in shiny that allows the user to input credentials for a database. The problem is that the module is opened inside of a called function, therefore somehow I need to pause the function from continuing until the user has put input…
Chabo
  • 2,842
  • 3
  • 17
  • 32
6
votes
2 answers

Could not resolve dependencies for spring-web-reactive

I am using the Reactive approach for asynchronous stream processing in my SpringBoot Application. I have these 6 imports for SpringFramework import org.springframework.web.reactive.function.server.RouterFunction; import…
Alex Smith
  • 463
  • 2
  • 8
  • 17
6
votes
1 answer

Spring 5 FluxSink does not send data when fluxSink.next is executed

I have one example of a GET method that generates a Randon INT and sends back to the client @GetMapping public Flux search() { return Flux.create(fluxSink -> { Random r = new Random(); int n; for (int…
6
votes
1 answer

DiffUtil and registerAdapterDataObserver

I have a RecyclerView adapter with DiffUtil functionality. I wanted to use DataObserver to notify fragment when DiffUtil finishes its magic. However, looks like DiffUtil doesn't call the observers. Adapter private val items:…
Majkeee
  • 960
  • 1
  • 8
  • 28
6
votes
1 answer

Angular reactive forms cast the form.values to the model

I have a model represented by interface. export interface MyModel { id: number; enabled: boolean; name: string; city: string; country: string; } When I am posting the reactive form all the values in form.value are string type. I tried to…
Sergino
  • 10,128
  • 30
  • 98
  • 159