-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement autostart for VNet in Connect (#40900)
* Refactor tests that depended on workspace service state Those tests explicitly set the entire WorkspacesService state and would have to be modified each time we added something to the state. There's no reason for them to know about WorkspacesService state, so this commit refactors them out of that knowledge. * Add useAppState * Automatically start VNet * subscribeWithSelector: Return unsubscribe function The unsubscribe function will be needed in order to comply with useSyncExternalStore API in the next commit. * Add isInitialized to WorkspacesService * Add useImmutableStore * Wait for workspace init before VNet autostart * Rename useAppState to usePersistedState * Rename useImmutableStore to useStoreSelector
- Loading branch information
Showing
12 changed files
with
630 additions
and
179 deletions.
There are no files selected for viewing
This file contains 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 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.