ready event is fired when a new project is loaded (including when imported) and the playground is ready to run.
Event Payload
The event callback receives an object with the following structure:The current configuration object representing the playground state.
When It Fires
- When the playground first loads with initial configuration
- After importing a project from any supported source
- After calling
setConfig()to load a new project - After the app initialization is complete and ready to execute code
Usage Example
Common Use Cases
Track Project Loads
Initialize After Load
Monitor Configuration Changes
Difference from load Event
- The
loadevent fires only once when the playground first loads - The
readyevent fires every time a new project is loaded - Use
readyto track project changes, useloadfor one-time initialization