Description
According to @xstate/react docs, it should be possible to import asEffect and asLayoutEffect functions. However, they are not available for import.
import { asEffect, asLayoutEffect } from '@xstate/react'
Expected Result
typeof asEffect === 'function' // true
typeof asLayoutEffect === 'function' // true
Actual Result
typeof asEffect === 'undefined' // true
typeof asLayoutEffect === 'undefined' // true
Reproduction
https://codesandbox.io/s/aged-worker-yjb6i?file=/src/index.js
Additional context
Versions:
[email protected]
@xstate/[email protected]
When is this fix going to be released?
When is this fix going to be released?
Soon!
Most helpful comment
Soon!