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
As a maintainer of TresJS, I would like to be able to filter devtools cb events by type from dev tools solutions, having a more structured object than just sending the tres state ctx.
Atm we send the state on useTresContextProvider like this:
window.__TRES__DEVTOOLS__.cb(state)
Also, I would like to have an API to send actions from the devtools (for example edit properties of objects from the devtools Tresjs/nuxt#73)
Suggested solution
Events are sent to de devtools.cb with the following structure:
type: string identification of the type of event to be able to filter on the devtools
@Tresjs/core This new feature will be a breaking change (we will need the v4 at the end 😛) for the nuxt devtools but is a necessary change to have a more robust event API for devtools.
Description
As a maintainer of TresJS, I would like to be able to filter devtools cb events by type from dev tools solutions, having a more structured object than just sending the tres state ctx.
Atm we send the state on
useTresContextProvider
like this:Also, I would like to have an API to send actions from the devtools (for example edit properties of objects from the devtools Tresjs/nuxt#73)
Suggested solution
Events are sent to de
devtools.cb
with the following structure:performance.now
for trackingFor the actions we could register an action hook on the core like this
then from the devtools
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: