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
Currently, if you have a partial that never gets referenced, Ractive will put a warning in the console like
Could not find template for partial '<named yield>'
Sometimes I would like to mark a partial as optional. This comes up most often in components where I'll created named yields that the consumer of the component may not be interested in actually using(depending on their use-case).
Perhaps something like {{yield?}} and {{>?}} would suppress the warning.
Versions affected:
all
Platforms affected:
all
Reproduction:
N/A
The text was updated successfully, but these errors were encountered:
Would that be an acceptable workaround, or is optional syntax more clear here? From the perspective of a function call, function fn(foo?: Foo) and function fn(foo: Foo = {}) are subtly but definitely different.
Description:
Currently, if you have a partial that never gets referenced, Ractive will put a warning in the console like
Sometimes I would like to mark a partial as optional. This comes up most often in components where I'll created named yields that the consumer of the component may not be interested in actually using(depending on their use-case).
Perhaps something like
{{yield?}}
and{{>?}}
would suppress the warning.Versions affected:
all
Platforms affected:
all
Reproduction:
N/A
The text was updated successfully, but these errors were encountered: