A
A
anriko2021-11-15 20:01:35
React
anriko, 2021-11-15 20:01:35

How to change state not from a component?

I work with Redux and the firebase realtime database, when one of the users changes the values ​​​​in the database, it launches the Api function in the application, but how can I pass the dispatch to this function if it is not called by the component?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-11-15
@anriko

store.dispatch?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question