Skip to content

Commit

Permalink
Merge pull request #29 from SICKAG/#10-error-in-documentation
Browse files Browse the repository at this point in the history
#10 fix incorrect onConfigUpdated event documentation
  • Loading branch information
WanjaTschuorSICKAG authored Oct 11, 2023
2 parents 4397919 + c766dd5 commit ceb7fd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/docs/core-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ceb7fd1

Please sign in to comment.