Relative Content

Tag Archive for typescriptreact-nativezustand

How to store the new Date().getTime() Method using Zustand and update the timer without re-rendering the component every second?

The stopwatch works perfectly with useState Hook, but I need to store the time using global state management. I’m using Zustand in my application and I have had no problems so far storing and updating states, but now I’ve been looking for days for an effective solution to store and update the stopwatch state without re-rendering the component every second, but I have not succeeded in it