-
Notifications
You must be signed in to change notification settings - Fork 55
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
Context API discriminator #839
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://ambitious-stone-0033b3603-839.westeurope.1.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://ambitious-stone-0033b3603-839.westeurope.1.azurestaticapps.net |
1 similar comment
Azure Static Web Apps: Your stage site is ready! Visit it here: https://ambitious-stone-0033b3603-839.westeurope.1.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://ambitious-stone-0033b3603-839.westeurope.1.azurestaticapps.net |
Heya @nielslyngsoe, haven't had a chance to take this for a spin just yet, but the change make sense (even if some of the implementation detail goes over my head). Will spin it up and check that it all behaves as expected. |
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.
Looks good to me
Azure Static Web Apps: Your stage site is ready! Visit it here: https://ambitious-stone-0033b3603-839.westeurope.1.azurestaticapps.net |
Provides a way to make a token discriminate the retrieved context.
In this way someone who needs a Document Workspace Context, can ensure that they just got that and not a Media Workspace Context.
This is needed cause Workspace Contexts are provided on the same alias, so we use a discriminator to differentiate. This is on purpose, so someone who just needs a Workspace Context to retrieve the name can be indifferent in their request.
Types of changes
Motivation and context
How to test?
Screenshots (if appropriate)
Checklist