New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
await act(async () => ...) #14853
await act(async () => ...) #14853
Commits on Feb 12, 2019
-
hacked up act(async () => {...})
Sunil Pai committedFeb 12, 2019
Commits on Feb 14, 2019
-
Sunil Pai committed
Feb 14, 2019 -
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedFeb 14, 2019 -
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedFeb 14, 2019 -
Sunil Pai committed
Feb 14, 2019
Commits on Feb 15, 2019
-
abstract .act warnings and stuff. all renderers. pass all tests.
Sunil Pai committedFeb 15, 2019 -
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedFeb 15, 2019 -
move testutils.act back into testutils
Sunil Pai committedFeb 15, 2019 -
move into scheduler, rename some bits
Sunil Pai committedFeb 15, 2019 -
Sunil Pai committed
Feb 15, 2019 -
a comment for why we don't do typeof === 'function'
Sunil Pai committedFeb 15, 2019 -
Sunil Pai committed
Feb 15, 2019 -
Sunil Pai committed
Feb 15, 2019 -
Sunil Pai committed
Feb 15, 2019 -
Sunil Pai committed
Feb 15, 2019
Commits on Feb 16, 2019
-
it's an odd one, because not only does sync act not flush effects correctly, but the async one does (wut). verified it's fine with the dom version.
Sunil Pai committedFeb 16, 2019 -
Sunil Pai committed
Feb 16, 2019 -
rewrote to move flushing logic closer to the renderer
the scheduler's `flushPassiveEffects` didn't work as expected for the test renderer, so I decided to go back to the hack (rendering a dumb container) This also makes reactdom not as heavy (by a few bytes, but still).
Sunil Pai committedFeb 16, 2019 -
move it around so the delta isn't too bad
Sunil Pai committedFeb 16, 2019
Commits on Feb 25, 2019
-
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedFeb 25, 2019 -
fix promise chaining propagate errors correctly test for thenable the 'right' way more tests! tidier! ponies!
Sunil Pai committedFeb 25, 2019 -
Sunil Pai committed
Feb 25, 2019
Commits on Feb 28, 2019
-
Sunil Pai committed
Feb 28, 2019 -
Merge branch 'async-act' of github.com:threepointone/react into async…
…-act
Sunil Pai committedFeb 28, 2019
Commits on Mar 1, 2019
-
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedMar 1, 2019 -
Sunil Pai committed
Mar 1, 2019 -
lint, move noop.act into react-reconciler
Sunil Pai committedMar 1, 2019
Commits on Mar 4, 2019
-
microtasks when checking if called, s/called/calledLog, cleanup
Sunil Pai committedMar 4, 2019 -
we could have globally changed our eslint config to assume Promise is available, but that means we expect a promise polyfill on the page, and we don't yet. this code is triggered only in jest anyway, and we're fairly certain Promise will be available there. hence, the once-off disable for the check
Sunil Pai committedMar 4, 2019
Commits on Mar 6, 2019
-
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedMar 6, 2019 -
shorter timers, fix a test, test for Promise
Sunil Pai committedMar 6, 2019
Commits on Mar 8, 2019
-
use global.Promise for existence check
Sunil Pai committedMar 8, 2019 -
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedMar 8, 2019
Commits on Mar 11, 2019
-
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedMar 11, 2019
Commits on Mar 13, 2019
-
Sunil Pai committed
Mar 13, 2019 -
a version that works in browsers (that support postMessage)
I also added a sanity fixture inside fixtures/dom/ mostly for me.
Sunil Pai committedMar 13, 2019 -
hoist flushEffectsAndMicroTasks
Sunil Pai committedMar 13, 2019
Commits on Mar 14, 2019
-
pull out tick logic from ReactFiberScheduler
Sunil Pai committedMar 14, 2019
Commits on Mar 15, 2019
-
fix await act (...sync) hanging
- fix a hang when awaiting sync logic - a better async/await test for test renderer
Sunil Pai committedMar 15, 2019 -
- use node's setImmediate if available - a warning if MessageChannel isn't available - rename some functions
Sunil Pai committedMar 15, 2019 -
pass lint/flow checks (without requiring a Promise polyfill/exclusion)
Sunil Pai committedMar 15, 2019 -
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedMar 15, 2019 -
use globalPromise for the missed await warning
Sunil Pai committedMar 15, 2019 -
__DEV__ check for didWarnAboutMessageChannel
Sunil Pai committedMar 15, 2019 -
thenables and callbacks instead of promises, pass flow/lint
Sunil Pai committedMar 15, 2019
Commits on Mar 16, 2019
-
- pulled most bits out of FiberScheduler - actedUpdates uses callbacks now
Sunil Pai committedMar 16, 2019 -
Sunil Pai committed
Mar 16, 2019 -
Sunil Pai committed
Mar 16, 2019 -
Sunil Pai committed
Mar 16, 2019 -
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedMar 16, 2019 -
Merge branch 'async-act' of github.com:threepointone/react into async…
…-act
Sunil Pai committedMar 16, 2019 -
export doesHavePendingPassiveEffects, nits
Sunil Pai committedMar 16, 2019
Commits on Mar 24, 2019
-
Sunil Pai committed
Mar 24, 2019 -
Sunil Pai committed
Mar 24, 2019
Commits on Mar 25, 2019
-
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedMar 25, 2019 -
Sunil Pai committed
Mar 25, 2019
Commits on Mar 27, 2019
-
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedMar 27, 2019 -
Sunil Pai committed
Mar 27, 2019 -
Sunil Pai committed
Mar 27, 2019
Commits on Mar 31, 2019
-
removed
actedUpdates()
, created shared/actingUpdatesScopeDepthSunil Pai committedMar 31, 2019 -
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedMar 31, 2019
Commits on Apr 1, 2019
-
rearrange imports so builds work, remove the hack versions of flushPa…
…ssiveEffects
Sunil Pai committedApr 1, 2019 -
represent actingUpdatesScopeDepth as a tuple [number]
Sunil Pai committedApr 1, 2019
Commits on Apr 2, 2019
-
use a shared flag on React.__SECRET...
Sunil Pai committedApr 2, 2019 -
remove createAct, setup act for all relevant renderers
Sunil Pai committedApr 2, 2019 -
shared/enqueueTask import ReactSharedInternals from 'shared/ReactSharedInternals'; simpler act() internals ReactSharedInternals.ReactShouldWarnActingUpdates
Sunil Pai committedApr 2, 2019 -
move act() implementation into createReactNoop
Sunil Pai committedApr 2, 2019 -
Merge remote-tracking branch 'upstream/master' into async-act
Sunil Pai committedApr 2, 2019 -
warnIfNotCurrentlyActingUpdatesInDev condition check order
Sunil Pai committedApr 2, 2019