Skip to main content

Performance Tuning

As SyncState only force updates the components which have subscribed to a path whenever there is an update on that path, the performance shouldn't me much of an issue. However, React rerenders the whole component tree down from the component that needs to be rerendered.

That's why it is a good practice to use React.memo for child components that don't need a rerender when its parent is rendered.

Check out the Todo example on CodeSandbox to see how it works.

Last updated on by RohitGeekyAnts