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
Muban templates in TypeScript accept a ref as a 2nd parameter.
Twig templates accept everything as "data", including the ref.
If we render a story component that has a decorator, where the decorator wants to access the rendered story component, it could be useful to provide a ref to it.
If, when rendering the story, we look to see if there is a refarg, we could pass it to the 2nd parameter of the TS template.
With that, it would work the same for TS and Twig templates.
The text was updated successfully, but these errors were encountered:
Muban templates in TypeScript accept a
ref
as a 2nd parameter.Twig templates accept everything as "data", including the ref.
If we render a story component that has a decorator, where the decorator wants to access the rendered story component, it could be useful to provide a
ref
to it.If, when rendering the story, we look to see if there is a
ref
arg
, we could pass it to the 2nd parameter of the TS template.With that, it would work the same for TS and Twig templates.
The text was updated successfully, but these errors were encountered: