Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function SuspenseRects({

const suspense = store.getSuspenseByID(suspenseID);
if (suspense === null) {
console.warn(`<Element> Could not find suspense node id ${suspenseID}`);
// getSuspenseByID will have already warned
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function SuspenseTreeContextController({children}: Props): React.Node {

useEffect(() => {
const handleSuspenseTreeMutated = () => {
transitionDispatch({
dispatch({
type: 'HANDLE_SUSPENSE_TREE_MUTATION',
});
};
Expand All @@ -91,7 +91,7 @@ function SuspenseTreeContextController({children}: Props): React.Node {
// At the moment, we can treat this as a mutation.
// We don't know which Elements were newly added/removed, but that should be okay in this case.
// It would only impact the search state, which is unlikely to exist yet at this point.
transitionDispatch({
dispatch({
type: 'HANDLE_SUSPENSE_TREE_MUTATION',
});
}
Expand Down
Loading