Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nextjs-global-app-state-strict-demo

DanielGiljam24MITdeprecated2.2.1TypeScript support: included

This package is no longer maintained.

This package demonstrates strict features planned for nextjs-global-app-state.

readme

Next.js Global App State "Strict" Demo

This package demonstrates "strict" features planned for nextjs-global-app-state. The implementation in this package is quite bare and the API is not ready. Please use nextjs-global-app-state instead.

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

2.1.0 - 2020-03-16

Added

  • onURLParam flag that you can enable for your global app state property in order to be able to set its state with a URL query parameter.
  • mounted and ready properties on the object returned by useGlobalAppState that indicate when the site/app has mounted in the client's browser and when it's fully ready to start receiving user input.
  • lang now sets the HTML document's lang attribute.

Fixed

  • Issue where changes to global app state would remount components causing them to lose local state.
  • Bug where errors thrown by global app state property setters weren't caught.
  • Bug where in rare cases contextValue wouldn't be populated as expected.

2.0.0 - 2020-03-14

Added

1.0.0 - 2020-02-25

Added