appsmithorg / appsmithorg/appsmith

[Feature]-[500]:Reactive Actions Setting, execute actions when dependencies change

Abierto
#2,639 6 comentarios 0 reacciones 0 asignados Ver en GitHub
Enhancement Javascript Product JS Evaluation Medium Query & JS Pod Query Widgets & IDE Pod
Lenguaje dominante
TypeScript
Estrellas
40.9k
Forks
4.8k
Merge medio
1 d 22 h
PR fusionados (30 d)
45

Descripción

## Description

We need a feature to allow the execution of actions whenever one of their dependent values changes. This will mean that an API / Query that reads a value from a widget or from another API/Query will be automatically re-run whenever the value of the Widget/API/Query changes. ex.
fetchUsersAPI
Body: {{Input1.text}}
This will call fetchUsers API whenever a user types a value in Input1
This feature should be an explicit setting that users must enable to begin with. If we see mass adoption and benefit here, we can introduce the logic to auto enable this for non-destructive actions the way we do for the onPageLoad setting

## Motivation
- This will make it easier for users to configure apps since it adheres more closely to the reactive paradigm and users now need only focus on the relationships between entities. We see this often where users configure pagination perfectly only to miss out on the last step i.e calling the API onPageChange. Related to #2086 and #2341
- This allows us to configure workflows where onPageLoad, we can call 1 API which fetches the list of users and another API to fetch the details of the first user in the table using the table's default selected row property. This is not possible today because the fetchDetails API is run before the table.selectedRow can be updated with the details of the fetchUsers API.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.