Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


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

const enforceSingleDefault: 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

const invalidateViewCache: CollectionAfterChangeHook<View>

Invalidates the view resolver cache after any view change.

References

setCreatedBy

Renames and re-exports setCreatedByHook

Last updated on