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.
Questions tagged [reactive]
2049 questions
229
votes
11 answers
When to use RxJava in Android and when to use LiveData from Android Architectural Components?
I am not getting the reason to use RxJava in Android and LiveData from Android Architectural Components.It would be really helpful if the usecases and differences between the both are explained along with sample example in the form of code which…

rahul66
- 2,413
- 2
- 14
- 8
181
votes
20 answers
How to find the invalid controls in Angular(v2 onwards) reactive form
I have a reactive form in Angular like below:
this.AddCustomerForm = this.formBuilder.group({
Firstname: ['', Validators.required],
Lastname: ['', Validators.required],
Email: ['', Validators.required,…

sa_
- 2,854
- 3
- 22
- 29
88
votes
6 answers
An equivalent to computed properties using @Published in Swift Combine?
In imperative Swift, it is common to use computed properties to provide convenient access to data without duplicating state.
Let's say I have this class made for imperative MVC use:
class ImperativeUserManager {
private(set) var currentUser:…

rberggreen
- 983
- 1
- 6
- 6
58
votes
5 answers
How to check if Mono is empty?
I'm developing a app with Spring Boot 2.0 and Kotlin using the WebFlux framework.
I want to check if a user id exits before save a transaction. I'm stucked in a simple thing like validate if a Mono is empty.
fun createTransaction(serverRequest:…

voliveira89
- 1,134
- 2
- 9
- 22
44
votes
2 answers
Difference between @Controller and RouterFunction in Spring 5 WebFlux
There are two ways to expose HTTP endpoints in spring 5 now.
@Controller or @RestController by making the controller's class, e.g.
@RestController
@RequestMapping("persons")
public class PersonController {
@Autowired
private PersonRepo…

Deepak Kumar
- 1,669
- 3
- 16
- 36
36
votes
3 answers
Websockets vs Reactive sockets
I have recently come across a term 'Reactive sockets'. Up until this point, I used to think websockets are the way to go for full fledged asynchronous style.
So what are reactive sockets.
This link (http://rsocket.io/) even talks about comparison…

Arunkumar Srisailapathi
- 1,139
- 2
- 8
- 27
32
votes
4 answers
Vue change object in array and trigger reactivity
How can I trigger an update when altering part of an object found by index in an array?
The docs show how to alter the value of an array:
Vue.set(example1.items, indexOfItem, newValue)
or
example1.items.splice(indexOfItem, 1, newValue)
But how to…

shanemgrey
- 2,280
- 1
- 26
- 33
31
votes
4 answers
ReactiveCrudRepository to use Hibernate in spring
Is it possible to use Hibernate and RDBMS(Mysql, Postgres etc) with ReactiveCrudRepository instead of CrudRepository? I have tried some samples with Spring Data Jpa and Hibernate, but couldn't get it done. I was only able to find a few samples on…

Thomson Ignesious
- 689
- 1
- 8
- 25
27
votes
4 answers
Spring WebFlux throws 'producer' type is unknow when I return value in the response body
I'm using Spring Boot with Kotlin, and now trying to get status value from a GET restful service by passing a handler for a reactive service.
I can see that the handler I'm passing is in the request, but whenever I'm building the body, I get this…

hasan.alkhatib
- 1,509
- 3
- 14
- 28
25
votes
2 answers
Reactive Spring WebClient - Making a SOAP call
I am looking to make a SOAP call from spring reactive webclient.
I couldn't find any documentation for it. Wondering what would the approach. Right now I am thinking
Construct the SOAP message using JAXB on a separate thread pool
Make the call by…

Faisal Masood
- 271
- 1
- 3
- 7
22
votes
4 answers
Props gotten directly from vue 3 setup are not reactive
I am writing an application in vuejs and i want to pass prop to a child component but I am getting this error:
Getting a value from the props in root scope of setup() will cause the value to lose reactivity
Parent component
…

etranz
- 891
- 2
- 10
- 29
22
votes
2 answers
PrematureCloseException: Connection prematurely closed
im using Web-flux/Reactive and Webclient, running it on tomcat and spring-boot.
Everything works fine. I read a lot about it. The problem seems to be that whenever you use webclient, you have to return or use the response, otherwise it will close…

Douglas Santos
- 515
- 1
- 4
- 12
20
votes
1 answer
Should we use a reactive-stack web framework like spring webflux when we have blocking calls?
I'm trying to understand when we would use a reactive-stack framework like webflux.
I've read articles that seems to suggest that we would benefit from reactive approach when we have many blocking calls. For example, if we had a webhook service that…

pcatre
- 1,304
- 2
- 16
- 24
18
votes
3 answers
Is it possible to get the first element from flux without converting flux into stream?
Is it possible to get the first element from flux without converting flux into stream?

akreddy.21
- 626
- 3
- 8
- 21
17
votes
2 answers
Why does Spring not provide reactive (non-blocking) clients for relational databases?
I've used Vert.x toolkit for creating reactive applications with support for relational DBs like MySQL and Postgres. I know Spring provides reactive support for some NoSQL DBs like Cassandra and Mongo but are they willing to provide the same for…

Mohamed Ibrahim Elsayed
- 2,734
- 3
- 23
- 43