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

Spring WebFlux WebSocket path variable

How can I get path variable in websocket handler with spring webflux? I've tried this: @Bean public HandlerMapping webSocketMapping() { Map map = new HashMap<>(); map.put("/path/{id}", session ->…
Slava
  • 311
  • 3
  • 9
6
votes
2 answers

How do we convert a Mono> to a Flux

Using spring 5, with reactor we have the following need. Mono getItemById(String id){ return webClient.uri('/foo').retrieve().bodyToMono(TheResponseObject) } Mono> getItemIds(){ return…
Bas Kuis
  • 748
  • 1
  • 7
  • 20
6
votes
0 answers

Reactive form with multiple select in Angular2

I have a dynamic form in Angular2. Its a form group with 4 selects. This form, also have a button that allows you to add another 4 selects like this:
Jose__vi
  • 158
  • 2
  • 10
5
votes
1 answer

[attr.disabled]=true not working in Reactive Form Angular 15

Currently I'm using Angular 15 and in Angular 14 for the disabled input field in reactive form I used [attr.disabled]="disableField ? true : null". This attribute after I update the Angular version 14 to 15 it's not working
Joya
  • 51
  • 3
5
votes
1 answer

R Shiny recoloring of points

I would like click-select points and group them based on color. I can save selected points with color information into a new data frame and plot it, however I would like to keep track and see what was already selected on the interactive plot. How…
Hixon
  • 77
  • 7
5
votes
1 answer

Mono or Flux request body in WebFlux controller

What is the difference between a controller that gets input regular java payload and that of reactive payload? For example, say I have the following 2 endpoints: @RestController public class MyController { @PostMapping public Flux
user1409534
  • 2,140
  • 4
  • 27
  • 33
5
votes
2 answers

React state not reactive when triggered from outside library

React beginner here. My code import Head from 'next/head'; import styles from '../styles/Home.module.css'; import { useState, useEffect } from 'react'; import Mousetrap from 'mousetrap'; export default function Home() { const [count, setCount] =…
adrianthedev
  • 626
  • 1
  • 11
  • 21
5
votes
1 answer

Data frame won't update using observeEvent in Shiny R

I am a novice programmer, please excuse if I am not clear or missing relevant information. I have a shiny app written that imports a dataframe from another set of code. I would like to update that dataframe with user input in the app. I have gotten…
reidj
  • 310
  • 1
  • 11
5
votes
1 answer

RxJS: Difference between auditTime and sampleTime?

I can't find any relevant posts about this and I can't figure out the nuance from the documentation, what is the difference between auditTime and sampleTime operators?
miikalo
  • 53
  • 3
5
votes
1 answer

OAuth2 in Reactive spring security - Unable to resolve the Configuration with the provided Issuer

I have implemented an auth-server built on spring-boot, oauth2 with below end-points: /oauth/token /oauth/check_token /oauth/token_key I am trying to integrate this auth-server in one of my reactive resource server. Tried below config: spring: …
Praveen Kamath
  • 959
  • 2
  • 10
  • 18
5
votes
0 answers

Redis PubSub Lettuce: How is back pressure handled?

We are using RedisPubSubReactiveCommands and calling the subscribe and observeChannels methods of Lettuce. In case of a fast publisher and a slow subscriber, how is the back pressure handled? Since publishers and subscribers are independent in…
Dollyg
  • 317
  • 2
  • 7
5
votes
2 answers

Spring Boot metrics http.client.requests do not work for WebClient reactive applications

I have a spring boot 2.2.2 microservices, which integrations with other services using WebClient (rective). According to Spring documentation, the actuator should return "http.client.requests" metrics by default as Timer is enabled by default. But…
Minghui Liu
  • 51
  • 1
  • 2
5
votes
0 answers

Shiny app: nothing changes when clicking on action button

Building on multiple stackoverflow questions, I tried to build this app which contains two action buttons the first one shows a data table the second one should open another sourced app but actually, nothing changes but in the global environment all…
John Smith
  • 278
  • 2
  • 10
5
votes
1 answer

Is @RequestBody should be wrapped with Mono Publisher in Spring Webflux?

I'm study Spring-Webflux and I just wonder should I wrap my @RequestBody object with Mono Publisher as well? For instance: @RequestBody Mono saveModel Example: @PostMapping("/item") public Mono>…
5
votes
3 answers

What's the point of .switchIfEmpty() getting evaluated eagerly?

Even if my stream is not empty, the fallback stream would always be created? What's the intent behind doing this? This is extremely non-idiomatic. On the other hand, .onErrorResume is evaluated lazily. Could someone please explain to me why…
Prashant Pandey
  • 4,332
  • 3
  • 26
  • 44