Core » Helpers » Events
<apollo-client>
listens for apollo-element-connected
and apollo-element-disconnected
events to manage their client reference.
const APOLLO_ELEMENTS = new Set();
window.addEventListener('apollo-element-connected', event =>
APOLLO_ELEMENTS.add(event.detail));
window.addEventListener('apollo-element-disconnected', event =>
APOLLO_ELEMENTS.delete(event.detail));
Properties
type
publicApolloEventType
controller
publicApolloController<unknown, unknown> | undefined
Properties
type
publicstaticApolloEventType
controller
publicApolloController<unknown, unknown> | undefined
Properties
controller
publicApolloController<unknown, unknown> | undefined
type
publicApolloEventType
Properties
type
publicstaticApolloEventType
controller
publicApolloController<unknown, unknown> | undefined
Properties
type
publicstaticApolloEventType
controller
publicApolloController<unknown, unknown> | undefined
Exports
js ApolloEvent
from events.js
js ApolloElementEvent
from events.js
js ApolloControllerEvent
from events.js
js ApolloControllerConnectedEvent
from events.js
js ApolloControllerDisconnectedEvent
from events.js