-
Notifications
You must be signed in to change notification settings - Fork 42
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
Login updates from 4.1 to 3.12. #1456
Conversation
If items are added directly to the module array, the array size increases and same modules are added twice on second render.
Memoize array in Login.stories and merge 3 useMemos to one in LoginContext
…f beacon is re-created In a scenario where external modules are used and the component is created multiple times, the listeners are set only once in the modules. This happens in StrictMode. On the second storeBeacon call the listeners in dedicated beacon are not added back and old ones are not removed. The list of listeners must be kept and disposers must be called. Now listeners are added again. Listeners added after a beacon is created are not stored, because those are logically added when second beacon is created - as in first run.
Select exported old ones and Login was missing
ApiToken renewal/update/removal can happen regardless of on-going queries. The renewal should also timeout. This util will track tokens, store them and timeout rewals. The code logic is copied from graphqlModule.
Main function of this module is to automatically append tokens to query headers and wait for on-going apiToken renewals when queries start.
If imports point to apollo/client/core, the apollo/client is not detected to be the one in package.json. Then it is bundled in to the hds-js.
…ntext The import in apolloClientModule.ts cannot be changed, so all bundled modules must be listed in allowedExternals. They are then bundled, but there is no fix.
Similar to ApolloClientModule and GraphQLModule but appends api tokens to fetch requests.
The render process could be too fast for Date.now() to change
Test Results1 tests 1 ✅ 0s ⏱️ Results for commit 5127989. ♻️ This comment has been updated with latest results. |
Preview found from hds-demo docs/preview_1456 Demos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good!
Description
Cherry-picked login updates from 4.1 (development)
Related Issue
Motivation and Context
How Has This Been Tested?
Demos:
Links to demos are in the comments
Screenshots (if appropriate):
Add to changelog