Repository navigation
Conversation
getDevToolsClientContext() read __VITE_DEVTOOLS_CLIENT_CONTEXT__, whose only writers were core's own embedded and standalone clients. Those were removed when core adopted the @devframes/hub-ui client (vitejs#529), which publishes the context through setDevframeClientContext at __DEVFRAME_HUB_CLIENT_CONTEXT__, so the getter always returned undefined. Delegate to getDevframeClientContext and re-export the hub's CLIENT_CONTEXT_KEY so the exported key names the slot that is written. Amp-Thread-ID: https://ampcode.com/threads/T-01a21105-bd16-7037-8fd4-6d70cea7c088 Co-authored-by: Amp <amp@ampcode.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
getDevToolsClientContext()always returnedundefinedbecause nothing has written__VITE_DEVTOOLS_CLIENT_CONTEXT__since #529 moved to the@devframes/hub-uiclient, so it now reads the hub's client context andCLIENT_CONTEXT_KEYre-exports the hub's key.Linked Issues
Additional context
tsnapi reports
CLIENT_CONTEXT_KEYas narrowed (stringto the hub's literal key), so the snapshot was updated withTSNAPI_ALLOW_BREAKING=1.