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'm trying to add events for our API client to a custom timeline layer, but it won't appear. The plugin looks like so:
exportconstmyPlugin={install(app,options={}){setupDevtoolsPlugin({
app,id: 'com.matchory.devtools',label: 'Matchory',logo: newURL('/logo.svg',window.location.origin).toString(),packageName: '@matchory/app',},api=>{constlayerId='com.matchory.devtools.http';console.log('Devtools API is ready:',api);api.addTimelineLayer({id: layerId,color: 0xff984f,label: 'API Events',});window.addEventListener('api:response',(event: CustomEvent)=>{console.log('HTTP response:',event);api.addTimelineEvent({
layerId,event: {data: event.detail.toString(),time: api.now(),logType: 'default',title: 'API Response',subtitle: 'Received a response',meta: {},},});});});},}satisfiesObjectPlugin;
From everything I can gather from the documentation, this should definitely create a layer in the layer list, and record my event as it arrives. However, while both console.logs are logged to the console, the devtools neither pick up on my plugin, nor do they show the new layer, or record the event.
The v7 documentation looks like an early prototype that is still missing the actual content; it feels like there's something missing to register my plugin, but neither the old docs nor the new ones show me which.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to add events for our API client to a custom timeline layer, but it won't appear. The plugin looks like so:
From everything I can gather from the documentation, this should definitely create a layer in the layer list, and record my event as it arrives. However, while both console.logs are logged to the console, the devtools neither pick up on my plugin, nor do they show the new layer, or record the event.
The v7 documentation looks like an early prototype that is still missing the actual content; it feels like there's something missing to register my plugin, but neither the old docs nor the new ones show me which.
The text was updated successfully, but these errors were encountered: