SyncState

SyncState

  • Docs
  • FAQ
  • Github
  • Hire The Creators

›Tips & Tricks

Introduction

  • Getting started
  • Installation
  • Motivation
  • Core Concepts

Recipes

  • Recipes

Examples

  • Counter
  • Counter with Undo / Redo
  • Todo app
  • Multi User Counter
  • Multi User Todo
  • Multi User Todo With Undo/Redo

Plugins

  • History
  • Remote

API Reference

  • API Overview
  • createDocStore
  • Store
  • Provider
  • useDoc
  • useSyncState

Tips & Tricks

  • Common Pitfalls & Best Practices
  • Using SyncState without React
  • Performance Tuning

FAQ

  • FAQ's

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.

← Using SyncState without ReactFAQ's →
Docs
Getting StartedExamplesPluginsAPI ReferenceFAQ
Community
TwitterStack OverflowDiscord
More
GitHub   Contribution Guidelines
Stars
Built with ❤️ at GeekyAnts.
Copyright © 2020 SyncState