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

Apply Spring Data's ReactiveCrudRepository to Redis

I'm playing with Spring Boot 2 with webflux. I'm trying to use ReactiveSortingRepository to simplify redis ops. public interface DataProfileRepository extends ReactiveSortingRepository { } Simply use this…
HooYao
  • 554
  • 5
  • 19
15
votes
2 answers

RxJS - take n last elements from an observable

I want to take 3 last elements from an observable. Let's say that my timeline looks like this: --a---b-c---d---e---f-g-h-i------j-> where: a, b, c, d, e, f, g, h, i, j are emitted values Whenever a new value is emitted I want to get it immediately,…
feerlay
  • 2,286
  • 5
  • 23
  • 47
14
votes
2 answers

What is the difference between map and doOnNext in flux? (i.e project reactor)

In Flux map function is also executed for each item in the flux. For doOnNext function is also executed for every item (emitted) in the flux. What is the difference from the user's perspective? Why do two similar methods exist? Could someone explain…
14
votes
4 answers

Angular 4 Reactive Forms Toggle Validation for Hidden Form Elements

I have a reactive form where on load no fields are required. If an option is selected that will add additional form elements into the formGroup then the new shown fields will be all required. If the nickname field is hidden then you should be able…
iChido
  • 3,972
  • 6
  • 26
  • 29
13
votes
2 answers

Default number of threads in Spring boot 2.0 reactive webflux configuration

While using Spring 5 reactive webflux with Spring boot 2.0, what's the default number of threads used to handle requests? How can I configure the number of threads used?
TheKojuEffect
  • 20,103
  • 19
  • 89
  • 125
13
votes
1 answer

Naming convention for methods returning RxJava's Completable

I have and Android app with the view class (Fragment, Activity) observing its ViewModel. The ViewModel exposes methods such as getUserName which returns Observable. Although maybe there is a possibility to find a better name (maybe…
12
votes
1 answer

More than 8 parameters in combineLatest using RxSwift

Is there any way to put more than 8 observable in combineLatest in RxSwift? Here is my current implementation: let registerUserParameters = Observable.combineLatest( firstname.asObservable(), lastname.asObservable(), …
vidalbenjoe
  • 921
  • 13
  • 37
11
votes
3 answers

Bean validation is not working for spring webflux

I have refactored my code to use spring webflux but now @Valid stopped working. It is not validating the request body. @PostMapping(value = "/getContactInfo",produces = "application/json",consumes = "application/json") public Flux
Chandresh Mishra
  • 1,081
  • 3
  • 24
  • 45
11
votes
1 answer

ReactiveSecurityContextHolder is empty in Spring WebFlux

I am trying to use the ReactiveSecurityContextHolder with Spring WebFlux. Unfortunately, the SecurityContext is empty : @Configuration public class Router { @Bean public RouterFunction routes(Handler handler) { …
Jul13nT
  • 657
  • 2
  • 9
  • 19
10
votes
1 answer

How reactive stream works with HTTP? What is reactive http?

I'm kind of new to Reactive Stream, so I got a question when using Spring Webflux and Reactor. I made a snippet like below: @RestController public class TestController { @GetMapping("responsebody/flux") public Flux tt2() { …
10
votes
2 answers

How to write complex code with multiple if else in functional reactive java using spring webflux

I am new to RXjava functional programming. I am writing a post endpoint with multiple conditions: When the post endpoint is hit with products If the cart for the logged in user does not exist in DB then create a new cart If the cart is already…
Srivi
  • 243
  • 4
  • 14
10
votes
1 answer

Service discovery with spring webflux WebClient

Is it possible to use Ribbon and Eureka service discovery with spring webflux webclient? I tried this code but getting an error during integration test. reactor.core.Exceptions$ErrorCallbackNotImplemented: java.lang.IllegalArgumentException: URI is…
10
votes
4 answers

Angular Reactive forms : how to get just changed values

Im building a reactive forms using angular 6, this form contain 3 attributes (name,age,phone) and i would to get just the changed values not all form values. this.refClientForm = this.formBuilder.group({ name: [], phone: [], age: [] }); for…
AHmedRef
  • 2,555
  • 12
  • 43
  • 75
9
votes
3 answers

Spring boot data r2dbc auto create tables

I have a simple question, is it possible to auto-generate tables using spring boot data r2dbc for MySQL or other databases? in JPA I added spring.jpa.hibernate.ddl-auto=update and created tables This is my pom:
Mateusz Sobczak
  • 1,551
  • 8
  • 33
  • 67
9
votes
3 answers

Spring Reactive get body JSONObject using ServerRequest

i'm spring reactive newbie. I am trying to use postman to get request information from the server. First, postman sends information to the server using the post method. Second, we've been working on the server side with the relevant code and getting…
oddeveloper
  • 173
  • 1
  • 2
  • 10