Skip to content
Discussion options

You must be logged in to vote

Hello Felix!

The landing page is not programmed to automatically refresh after a few seconds.

You can set up a custom client and set up an interval on that component's useState react hook to pull the numbers every few seconds. Remember to include clearInterval in the clean up function in the useState react hook. When one part of state is changed, react updates only the components and downstream components that rely on that changed piece of state. If you only update that one occupants number, it will not refresh the whole page, only that component.

Happy to expand more if you need it!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Softvision-GeluHaiduc
Comment options

Answer selected by Softvision-GeluHaiduc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants