Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor grammatical change for clarity

...

One of the main ways to start code on creation of a pico is by executing code on ruleset installation. Wrangler raises the wrangler:ruleset_added event whenever you install a ruleset on a pico using wrangler (it uses the event wrangler:install_rulesets_requested does thisevent). One of the attributes that wrangler:child_creation takes is a "rids_to_install" parameter. When creating a new pico, Wrangler will install the list of rulesets given in this attribute in the new pico as it is created. Wrangler will then raise wrangler:ruleset_added as normal, which you can select on and run code with.

...