Life Cycle

Info

Runtime Hooks

The onReset hook is triggered at runtime when files change or code recompilation (rspack) is needed. It is not part of the initialization flow, so it is not shown in the diagram above.

  • Trigger Timing: File changes (event.type: 'file-change') or code recompilation (rspack) completion (event.type: 'repack')
  • Use Cases: Clearing cache, re-initializing resources, etc.