@xstate/react
Advanced tools
Comparing version 0.8.1 to 1.0.0-rc.0
@@ -5,2 +5,11 @@ # Changelog | ||
## [0.8.1] | ||
- Services are now kept up to date | ||
## [0.8.0] | ||
- The `useActor()` hook is now available. | ||
- Support for persisted states | ||
## [0.7.1] | ||
@@ -7,0 +16,0 @@ |
@@ -42,2 +42,1 @@ "use strict"; | ||
exports.useMachine = useMachine; | ||
//# sourceMappingURL=fsm.js.map |
@@ -130,2 +130,1 @@ "use strict"; | ||
exports.useActor = useActor_1.useActor; | ||
//# sourceMappingURL=index.js.map |
@@ -35,2 +35,1 @@ "use strict"; | ||
exports.useActor = useActor; | ||
//# sourceMappingURL=useActor.js.map |
{ | ||
"name": "@xstate/react", | ||
"version": "0.8.1", | ||
"version": "1.0.0-rc.0", | ||
"description": "XState tools for React", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
"react": "^16.8.0", | ||
"xstate": "^4.6.0" | ||
"xstate": "^4.7.0" | ||
}, | ||
@@ -62,4 +62,4 @@ "devDependencies": { | ||
"typescript": "^3.6.2", | ||
"xstate": "^4.7.0-rc1" | ||
"xstate": "^4.7.0-rc6" | ||
} | ||
} |
@@ -291,3 +291,3 @@ # @xstate/react | ||
// Get the persisted state config object from somewhere, e.g. localStorage | ||
const persistedState = JSON.parse(localStorage.get('some-persisted-state-key')); | ||
const persistedState = JSON.parse(localStorage.getItem('some-persisted-state-key')); | ||
@@ -294,0 +294,0 @@ const App = () => { |
19817