Skip to content

fix: correct Context instability leading to hydration failure#395

Merged
theKashey merged 1 commit into
masterfrom
fix-ssr-stability
Nov 29, 2025
Merged

fix: correct Context instability leading to hydration failure#395
theKashey merged 1 commit into
masterfrom
fix-ssr-stability

Conversation

@theKashey
Copy link
Copy Markdown
Owner

Comment thread _tests/stability.spec.js

// Desired behaviour: FocusLock should not cause React hydration update warnings
const hasHydrationFailure = messages.some(msg =>
msg.includes('This Suspense boundary received an update before it finished hydrating')
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was causing the problem. @ExLineP 🤝 for reporting it

Comment thread src/Lock.js
get active() {
return isActive.current;
},
}), [disabled, isActive, shards, observed]);
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all the fix required:

  • half of these values is actually never used
  • the ones used are totally happy working with refs

@theKashey theKashey merged commit b6bc637 into master Nov 29, 2025
3 checks passed
@theKashey
Copy link
Copy Markdown
Owner Author

Released in v2.13.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant