Rationale: Using lifecycle=initialized is useful for isolation. Using lifecycle=render is probably not super useful, since you can always just define a callback. Also, inititalizedCallback inside of lifecycle=initialized doesn't get registered, which makes it not as easy to switch between.
Move the lifecycle= feature to be a recipe, showing how Script can be extended (or just delete)
Add an isolate:=true or context="component" or as="instance" or per-instance:=true or something
Then, change code to still call any exported initializedCallback AFTER calling the function itself during initializedCallback() of Script
Building on: #22
Rationale: Using
lifecycle=initialized
is useful for isolation. Usinglifecycle=render
is probably not super useful, since you can always just define a callback. Also,inititalizedCallback
inside oflifecycle=initialized
doesn't get registered, which makes it not as easy to switch between.Move the
lifecycle=
feature to be a recipe, showing how Script can be extended (or just delete)Add an
isolate:=true
orcontext="component"
oras="instance"
orper-instance:=true
or somethingThen, change code to still call any exported initializedCallback AFTER calling the function itself during
initializedCallback()
of Script