You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think for many people (including me), the intuitive idea of a context is that a consumer, simply by virtue of existing under a provider, should have the provider's value; I think a lot of people would think of this as an invariant that contexts should obey. But the idea of a one-off context request (as opposed to a subscription request) inherently contradicts this, since the consumer immediately falls out-of-sync with the provider when the context changes. Effectively, it feels like the consumer was never really 'in the context' of the provider to begin with.
This might seem trivial, since if a consumer wanted to stay in-sync, it should have asked the provider to keep it in-sync. But my question is: why wouldn't a consumer want to stay in-sync? Why would a consumer want to behave in this way? Again, it feels contradictory to the very idea of contexts; it's not apparent to me that it makes conceptual sense.
@lit/context actually defaults to making one-off requests, which very much implies there is a good use case for them, but none of the code examples seem to motivate this. I expect I may be missing something obvious, so I would appreciate it if anyone can shed light on this.
The text was updated successfully, but these errors were encountered:
I think for many people (including me), the intuitive idea of a context is that a consumer, simply by virtue of existing under a provider, should have the provider's value; I think a lot of people would think of this as an invariant that contexts should obey. But the idea of a one-off context request (as opposed to a subscription request) inherently contradicts this, since the consumer immediately falls out-of-sync with the provider when the context changes. Effectively, it feels like the consumer was never really 'in the context' of the provider to begin with.
This might seem trivial, since if a consumer wanted to stay in-sync, it should have asked the provider to keep it in-sync. But my question is: why wouldn't a consumer want to stay in-sync? Why would a consumer want to behave in this way? Again, it feels contradictory to the very idea of contexts; it's not apparent to me that it makes conceptual sense.
@lit/context
actually defaults to making one-off requests, which very much implies there is a good use case for them, but none of the code examples seem to motivate this. I expect I may be missing something obvious, so I would appreciate it if anyone can shed light on this.The text was updated successfully, but these errors were encountered: