Releases: react-gx/gx
Releases · react-gx/gx
Instauration of Asynchronous actions
What's new ?
- You can now define asynchronous actions into your signals in order to perform some asynchronous task like fetching data from a server or anything else and directly update the state with the value returned.
- You can now access to the updated state directly after calling an async action from a function and use it to do other tasks
Bug fixed
- You can now use GX in a Strict Mode without any problem.
Add operations functions to signals
What's new ?
- In the creation of signals, now you have to possibility to define
operationsin order to act to a state without modify it and return a new value obtained after the operation. - Add new hook
useOperationsfor retrieving operations defined into thecreateSignalfunction - Support for Typescript generic types for
useActions,useActionanduseOperationshooks.
Integration with Nextjs13 fully supported
Problem fixed
Integration with Nextjs version 13. There is a problem while importing GXProvider, createSignal and createStore from the package and the interpreter says that, createSignal and createStore were not available.
Resolution
With the version 1.2.5 it's now possible to use GX into a Nextjs version 13 apps.
Version v1.2.1: TypeScript support
This version of GX supports TypeScript and comes with a new hook, useActions to get all actions from a specific signal
version 1.1.0
Version 1.1.0 of Gx