Closed
Description
The Lit team has been prototyping a Context-like API based on events.
The basic idea is that components that need some contextual data will fire an event to request the data. The event will carry a callback use the pass the data to the requesting component. Components that can provide the data will respond to the event and call the callback with the data. The callback can then trigger arbitrary work in the requesting component, including a re-render.
The details needed for interop are things like the event name, callback property name and signature, and any keys that are used to identify the context and or data object.
Metadata
Metadata
Assignees
Labels
No labels