Replies: 1 comment 1 reply
-
I'm not sure why that would be better or seems more idiomatic. Could you say more about why that seems to you to be the case? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
With leptos 0.7 most of the api was moved from the
create_signal
to a more rust likeSignal::new
api.One thing that still stands out a bit is
expect_context
.Would it make sense to provide a trait + blanket impl similar to this:
which would then allow to use it like the following:
Now I'm myself not convinced that it's better 😅 also because it looses the symmetry with
provide_context
, wdyt?Beta Was this translation helpful? Give feedback.
All reactions