Skip to content

馃弴馃弴馃弴 Refactor top-level context providers for performance聽#123

Description

@mithi

There are currently three top level providers for handling the ui state:

I have to refactor this to best practices so that the app will be faster considering the following techniques:

  1. How to optimize your context value by separating state and dispatch
  1. By using useCallback and useMemo for state update functions https://github.com/kentcdodds/kentcdodds.com/blob/319db97260078ea4c263e75166f05e2cea21ccd1/content/blog/how-to-optimize-your-context-value/index.md

Be sure to measure the performance before and after with chrome dev tools and react component profilers
to make sure the changes introduced actually does make things faster... not slower.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions