Skip to content

Commit

Permalink
frameloop never missing tail callback
Browse files Browse the repository at this point in the history
  • Loading branch information
RenaudRohlinger committed Jul 3, 2022
1 parent 0003095 commit fa0ee91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/fiber/src/core/loop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export function createLoop<TCanvas>(roots: Map<TCanvas, Root>) {
if (!state) roots.forEach((root) => render(timestamp, root.store.getState()))
else render(timestamp, state, frame)
if (runGlobalEffects) run(globalAfterEffects, timestamp)
if (runGlobalEffects) run(globalTailEffects, timestamp)

}

return {
Expand Down

0 comments on commit fa0ee91

Please sign in to comment.