Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions modules/react-reconciler/src/ReactFiberHooks.new.luau
Original file line number Diff line number Diff line change
Expand Up @@ -1870,6 +1870,12 @@ function dispatchAction<S, A>(fiber: Fiber, queue: UpdateQueue<S, A>, 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
Expand Down