Xstate: [React] asEffect and asLayoutEffect are not re-exported

Created on 1 Jul 2020  路  2Comments  路  Source: davidkpiano/xstate

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]

Most helpful comment

When is this fix going to be released?

Soon!

All 2 comments

When is this fix going to be released?

When is this fix going to be released?

Soon!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dakom picture dakom  路  3Comments

3plusalpha picture 3plusalpha  路  3Comments

bradwoods picture bradwoods  路  3Comments

kurtmilam picture kurtmilam  路  3Comments

greggman picture greggman  路  3Comments