-
Notifications
You must be signed in to change notification settings - Fork 16
INTER-2332: avoid setState-in-effect and stale responses in immediate mount fetch #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
b539205
feat: add React 19 / Next 16 support (INTER-2317)
JuroUhlar 1ff896f
fix: declare Node engine requirement in Next example apps
JuroUhlar f999113
chore: update CI workflow name for clarity
JuroUhlar ffc711f
fix: configure Next ESLint rootDir and drop stale Next 14 reference
JuroUhlar 8717c3e
test(e2e): add Playwright e2e matrix for examples on React 18 & 19
claude 25fa8a6
ci(e2e): source the region from the FPJS_REGION repo variable
claude 3e2020a
ci(e2e): require FPJS_REGION with no default
claude 9759b06
ci(e2e): accept the public API key as a secret or a variable
claude 7902459
ci(e2e): serve the preact example from a build instead of watch
claude 943e78e
ci(e2e): harden workflow validation
JuroUhlar 1dd3d8d
test(e2e): harden visitor-id assertion and React 19 switch
JuroUhlar eda0ea9
chore: region param optional
JuroUhlar 7dd5fe7
chore: clean up
JuroUhlar b4cfbc1
chore: tighten EXAMPLES key typing with satisfies
JuroUhlar bca2da5
test(e2e): validate production builds
JuroUhlar f83b75f
fix(examples): guard optional region env access
JuroUhlar c9b927f
chore: fold preact typecheck into example build
JuroUhlar c1cabef
fix(examples): drop deprecated TypeScript 6 compiler options
JuroUhlar 8e2846b
fix: address Copilot review on example name check and env reads
JuroUhlar 0bf9954
fix: avoid setState-in-effect and stale responses in immediate mount …
JuroUhlar 8aca20e
refactor: share query state helpers in useVisitorData
JuroUhlar df6eefc
test: clarify stale immediate response race coverage
JuroUhlar ad87c55
Merge origin/main into inter-2322/use-visitor-data-mount-fetch
Copilot 1e21294
fix: handle immediate query state transitions
JuroUhlar f1671b0
chore: changeset
JuroUhlar 61c2213
fix: clarify automatic fetch error handling
JuroUhlar 29f44f9
fix: docs phrasing
JuroUhlar acb5058
fix: dont mix promises and async-await
JuroUhlar c11d5b1
fix: use currentImmediate
JuroUhlar 046727d
test: replace actWait with waitFor and act
JuroUhlar 837d3e5
fix: clarify changeset
JuroUhlar 43b4d29
chore: polish changeset
JuroUhlar e02506d
chore: re-trigger CI after dx-team-toolkit v1.5.8
JuroUhlar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| '@fingerprint/react': minor | ||
| --- | ||
|
|
||
| Behavior bug fixes: | ||
|
|
||
| - Stale automatic `useVisitorData` requests (when `immediate` changes from `true` to `false` during an automatic request) no longer overwrite state (the result is ignored). | ||
| - Loading state is now correctly synchronized when `immediate` changes. | ||
|
|
||
| We recommend double-checking that your implementation isn't relying on the previous incorrect behavior when upgrading. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.