diff --git a/modules/react-reconciler/src/ReactFiberHooks.new.luau b/modules/react-reconciler/src/ReactFiberHooks.new.luau index f03211d3..211a0005 100644 --- a/modules/react-reconciler/src/ReactFiberHooks.new.luau +++ b/modules/react-reconciler/src/ReactFiberHooks.new.luau @@ -1870,6 +1870,12 @@ function dispatchAction(fiber: Fiber, queue: UpdateQueue, action: A, -- It's still possible that we'll need to rebase this update later, -- if the component re-renders for a different reason and by that -- time the reducer has changed. + if pending == nil then + queue.pending = nil + else + pending.next = update.next + queue.pending = pending + end return end -- ROBLOX catch