You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A method that was working previously to ensure a snippet prop function will always be defined was by setting the snippet prop with a default snippet defined inside the current component.
This seems to have stopped working though, potentially with the changes in #9759
Can still conditionally check the children prop is defined as a workaround for setting a fallback, but I do personally prefer being able to default it, given fallback and children should exist in the same scope anyway.
Describe the bug
A method that was working previously to ensure a snippet prop function will always be defined was by setting the snippet prop with a default snippet defined inside the current component.
i.e.
This seems to have stopped working though, potentially with the changes in #9759
Can still conditionally check the children prop is defined as a workaround for setting a fallback, but I do personally prefer being able to default it, given fallback and children should exist in the same scope anyway.
Reproduction
REPL
Logs
Error: `Cannot access 'fallback' before initialization`
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: