web / lib/collections/views/hooks
lib/collections/views/hooks
Hooks for the Views collection.
Provides lifecycle hooks for:
- Setting createdBy on creation
- Enforcing single default view
Variables
enforceSingleDefault
constenforceSingleDefault:CollectionBeforeChangeHook<View>
Enforces that only one view can be the default within its site. When a view is set as default, unsets any other default views in the same site.
invalidateViewCache
constinvalidateViewCache:CollectionAfterChangeHook<View>
Invalidates the view resolver cache after any view change.
References
setCreatedBy
Renames and re-exports setCreatedByHook
Last updated on