Polling dynamic updates and layouting with handle #3136
-
Hi 👋, we want to pull updates into our page rendered by remix. But now we want to update the page every few seconds with an updated server state. We do not want to reload the full page. There is the Any suggestion? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There's a discussion to add a feature to ask Remix to refresh data #1996, in that discussion Ryan mentions some ways to achieve that right now, the best way is to use a fetcher to submit to an action returning nothing, so then Remix will trigger a revalidation of the data from the loaders. There's an implementation of that useDataRefresh hook mentioned on remix-utils too in case you want to try that, the internal implementation is quite simple and you could copy it too |
Beta Was this translation helpful? Give feedback.
There's a discussion to add a feature to ask Remix to refresh data #1996, in that discussion Ryan mentions some ways to achieve that right now, the best way is to use a fetcher to submit to an action returning nothing, so then Remix will trigger a revalidation of the data from the loaders.
There's an implementation of that useDataRefresh hook mentioned on remix-utils too in case you want to try that, the internal implementation is quite simple and you could copy it too