action.md

April 22, 2026 ยท View on GitHub

action hook

action(params, queryParams, data)

  • params {Object} - Serialized route parameters, /route/:_id => { _id: 'str' }
  • queryParams {Object} - Query params object, /route/?key=val => { key: 'val' }
  • data {Mix} - Value returned from .data() hook
  • Return: {void}

.action() hook is triggered right after page is navigated to route, or after (exact order, if any of those is defined):