This repository was archived by the owner on May 31, 2025. It is now read-only.
Replies: 1 comment
-
You can pass any value with |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
@mmuscat playing around with
ValueTokens
. Working great so far. A few questions though.In the example in the docs there is a
Count
value token.Shouldn't it be
ValueToken<Value<number>>
(I get a TypeScript error when used withnumber
)?Which leads me to a follow up question.
If
ValueTokens
are meant for passing value objects through the component tree, wouldn't it be nice to make theValue
implicit?So when I have a count value token, I can define it as
ValueToken<number>
(like in the example). When usingprovide
andinject
I automatically get the stored value object containing a number.In case I want to pass around a non-reactive value I can always use a normal provider/
InjectionToken
.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions