Releases: VanTanev/xstate-helpers
v1.0.0-beta.2
- [Breaking change] Remove
actorFromReducer
andmachineFromReducer
- [email protected] behaviors handle this 15d53b3 - [Breaking change]
createReactContextHelpers()
now returnsuseActor
instead ofuseService
4355192 - [Breaking change] Move to preconstruct, add multiple entry points d64e451
The most major change is that React
helpers are no longer exported from the root of the package, instead you must import them from xstate-helpers/react
. This change allows you to use xstate-helpers
in projects that do not have react as a dependency.
v1.0.0-alpha.1
- [Breaking change] Remove
actorFromReducer
andmachineFromReducer
- [email protected] behaviors handle this 15d53b3 - [Breaking change]
createReactContextHelpers()
now returnsuseActor
instead ofuseService
4355192 - [Breaking change] Move to preconstruct, add multiple entry points d64e451
v0.11.0
v0.10.3
v0.10.2
- Added
forceEnabled
to <XStateInspectLoader> + tests and docs
v0.10.1
v0.10.0
- add <XStateInspectLoader> 99b0c29
XStateInspectLoader
An easy way to add the XState Inspector directly to your React app.
The inspector is added to an iframe
at the top of the page by default. You can customize its position by passing the wrapperElement
prop to <XStateInspectLoader>
that must be either a selector or a dom node.
import React from 'react';
import { XStateInspectLoader } from 'xstate-helpers';
const App = () => {
return (
<XStateInspectLoader>
<YourComponents />
</XStateInspectLoader>
);
};
Then you can enable/disable the inspector by using the browser's console:
XStateInspector.enable()
XStateInspector.disable()
v0.9.0
This version is feature-complete for v1.0.0, but I'll release that in a few days after we confirm that everything behaves as expected. API will be locked then, but I don't believe we'll do any breaking changes between v0.9.0 and v1.0.0