diff --git a/docs/docs/core-api.md b/docs/docs/core-api.md index 8f4ed9a..dcf2784 100644 --- a/docs/docs/core-api.md +++ b/docs/docs/core-api.md @@ -521,8 +521,7 @@ onUpdated(() => { }); ``` -The onUpdated hook is based on the `collage-context-updated` event, which is dispatched, everytime something on the own context changed. The event emits the updated context. -You can use the event if necessary, but you should prefere the hook. +The onConfigUpdated hook is also based on the `collage-context-updated` event, which is dispatched, everytime something on the own context changed. The event emits the updated context. You can use the event if necessary, but you should prefer the hook. ##### onConfigUpdated Executes a callback if the config of this context was updated. This hook takes a callback as first parameter. The second parameter is optional and represents the options argument of addEventListener.