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
export default function () { return { name: 'user-hooks-plugin', async init(args) { return args; }, registerHooks(args) { return { someHook: SyncWaterFallHook() } }, someHook(args) { // can also return or respond with data from the runtime plugin } }; }
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Allow users to extend or add custom hooks to our FederationHost interfaces.
FederationHost should have something like
userHooks
that complimenthooks
General Idea:
Hooks should be accessable to universally via the federation global or by using getInstance()
Using a hook.
For example, an application could emit information such as app state to the hook.
Consuming info from the hook in another application.
Or responding to the hook in a runtimePlugin:
Beta Was this translation helpful? Give feedback.
All reactions