Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed useParams hook undesired re-renders and updated it to use PathParamsContext in the app router. #60708

Merged
merged 8 commits into from
Feb 14, 2024

Commits on Jan 16, 2024

  1. Moved app-dir path params parsing logic to AppRouter.

    This allows for the use of PathParamsContext in the useParams hook.
    In addition this allows for memoization of the layout tree which fixes undesired re-renders of the useParams hook.
    florian-lp committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    58d5457 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0a78dbc View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. Configuration menu
    Copy the full SHA
    1d0b25e View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Configuration menu
    Copy the full SHA
    066bf4e View commit details
    Browse the repository at this point in the history
  2. lint fixes

    ztanner committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    4978c45 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. Configuration menu
    Copy the full SHA
    1961601 View commit details
    Browse the repository at this point in the history
  2. add tests

    ztanner committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    be58230 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7a6362f View commit details
    Browse the repository at this point in the history