-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] polish sharedcomponent API (#9157)
Attempt to simplify as much as possible the API exposed by the sharedcomponent package ahead of exposing it as part of a published module. Relates to #9156 Changes: * Remove the map field in the struct, make the struct a map * Remove the `NewSharedComponents` function, just initialize the map instead. * Rename GetOrAdd to LoadOrStore
- Loading branch information
Showing
3 changed files
with
69 additions
and
70 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
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