This section of the documentation is still work in progress and soon will be updated with
more examples and details.
Please be patient while we work on the ongoing users and profiles refactoring as part of issue #376 .
The standard way to modify the default PocketBase behavior is through event hooks in your Go code.
Each event hook has 2 public methods:
Add(fn)- registers a new listener callback function to the specified event hook.
Returning an error or
hook.StopPropagationin the callback function stops the listeners execution chain.
Trigger(data)- triggers the event hook, aka. executes its listeners in the order they were added.
This method usually is not called manually by users.