react-global-state

Efficient and simple to use global state management for React, implemented with hooks, and spiced by useful data management functions (async retreival, caching, etc.)

OTHER License

Downloads
321
Stars
1
Committers
2
react-global-state - v0.3.0

Published by birdofpreyru about 4 years ago

  • Fixes the edge case causing managed inputs depending on the global state to loose the correct text cursor position.
  • [BREAKING] A side effect of the fix: now it is not possible to use global state setter directly in the functional component body (same as it is not possible to use the standard useState(..)) this way.
react-global-state - v0.2.4

Published by birdofpreyru over 4 years ago

  • Updated dependencies.
react-global-state - v0.2.3

Published by birdofpreyru over 4 years ago

Reverts the Babel config change introduced in v0.2.2.

react-global-state - v0.2.2

Published by birdofpreyru over 4 years ago

  • [#17] Improves Babel config
  • [#18] Optional debug logging for dev mode
  • [#19] Fixes missing polyfills for IE11 in web build
  • Update of NPM dependencies
react-global-state - v0.2.1

Published by birdofpreyru over 4 years ago

A better version of v0.2.0 update.

react-global-state - v0.2.0

Published by birdofpreyru over 4 years ago

  • [#16] Presumably fixes the build to work in all environments in the optimal way
react-global-state - v0.1.4

Published by birdofpreyru over 4 years ago

Rebuilds the bundle with browser-safe Babel target config.

react-global-state - Updates

Published by birdofpreyru over 4 years ago

  • [#14] Adds deps option to useAsyncData(..) hook.
  • Adds useAsyncCollection(..) hook.
  • README updates.
  • Update of NPM dependencies.
react-global-state - Bugfix

Published by birdofpreyru over 4 years ago

  • [#11] Fixes a bug related to state update notifications.
react-global-state - Bugfix

Published by birdofpreyru over 4 years ago

  • [#9] Updates configuration to pack only necessary stuff into NPM releases. The unpacked library size thus decreases from 98.3 Kb down to 58.0 Kb.
  • [#10] Fixes notifications about updates of nested global state paths for watchers of their parent paths.
react-global-state - Bugfix

Published by birdofpreyru over 4 years ago

  • [#6] Fixes useAsyncData(..) hook to work fine with very large and infinite maxage, refreshAge, and garbageCollectAge option values.

  • [#8] BREAKING: Updates useGlobalState(..) hook to comply with the following features of React's useState(..) hook:

    As the result, when functions are passed into useGlobalState(..) as the initial or new state, the hook behaves correctly, and the same way as the useState(..) does for the local state.

react-global-state - v0.0.11

Published by birdofpreyru almost 5 years ago

Fixes an bug in useGlobalState()

react-global-state - v0.0.10 - Exposes `getGlobalState` hook

Published by birdofpreyru almost 5 years ago

react-global-state - v0.0.9

Published by birdofpreyru almost 5 years ago

  • stateProxy property of <GlobalStateProvider> now also accepts a GlobalState instance to use (otherwise, if the value is truthy, it attempts to get the state from the parent provider).
react-global-state - Adds getSsrContext(..) hook

Published by birdofpreyru almost 5 years ago

react-global-state - v0.0.7

Published by birdofpreyru almost 5 years ago

Adds stateProxy feature to <GlobalStateProvider>.

react-global-state - v0.0.6 - Polyfills `Promise.allSettled(..)`

Published by birdofpreyru almost 5 years ago

Closes #3

react-global-state - v0.0.5 - Server-side rendering (SSR) support

Published by birdofpreyru almost 5 years ago

  • [#1] Server-side rendering (SSR) support
  • Update of README
  • Updates of dependencies, and small optimizations
react-global-state - v0.0.4 - Fixes NPM package

Published by birdofpreyru almost 5 years ago

In the previous releases the build directory was ignored by NPM. This release fixes it.

react-global-state - v0.0.3

Published by birdofpreyru almost 5 years ago

Covers codebase with automated tests, and fixes a few bugs.