afterActive()
Called after activation, for initialization (may be async).
protected afterActive(signal: AbortSignal): void | Promise<void>;
Notes
- The view has been created before this method is called (if a View function is defined), but hasn’t been rendered yet.
- Use the signal parameter to cancel fetch requests, timers, etc. when the activity deactivates or is unlinked.
- This method is not called if the activity is deactivated before the scheduler runs; check activeSignal.aborted if needed.
Parameters
- signal — Aborted when activity deactivates or is unlinked
Related
class Activity
A class that represents a part of the application that can be activated when the user navigates to it.
