Provide Story & Variant Lifecycle/Event Hook #376
haleksandre
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Would you be open to adding lifecycle events to the Story & Variant components with the current story & variant information that could be useful to use within our story component?
One of the possible use cases is to set the default props, slots or other variables' values within that hook. An example of this in Svelte would look like this.
Within your
Variantcomponent youdispatchan event within the lifecyclesonMount,onDestroy, etc.(the following example assume an event called
mountgets dispatched during theVariantonMountlifecycle hook)Beta Was this translation helpful? Give feedback.
All reactions