I have an app on react-native and a website on react (backend shared)
After certain actions on the website, the application should react to them and make a request to the api to update its state
Tell me how this can be implemented? Even the names of the tools or a clearer wording will be enough, because my queries on google give me the wrong thing
CodePudding user response:
You can use graphql basically when data are changed on backend it will immediately rewrite data in the app but you have to use qraphql backend.
Or if you want to stick with Rest API you can use react-query. You can set up this library for checking changes every minute on your server.
CodePudding user response:
You can use socket (for example: socket.io) to do it realtime.
