Illustrative samples missing on how to use Valtio? #779
Replies: 2 comments
-
I love the idea of creating good examples to showcase both valtio's benefits and even some of it's gotchas. I have a few questions on some of the samples you asked about:
Can you help by specifying what you're thinking might be confusing or what kind of example you'd think would be helpful? Authentication isn't something valtio handles, but is rather used by whatever authentication strategy you decide to use. Here's a video of using valtio alongside firebase for auth that might help: https://www.youtube.com/watch?v=hUi5RcRyhxM
This is another piece that can sometimes mean many things. Are you referring to stuff like permissions? Valtio can store those permissions but I don't think that it should be doing any authorization logic per say...
This seems like a pretty normal piece of state like any other, right? Do you think it might help people click with the concepts better by using this kind of thing instead of something like a todo app perhaps?
Can you explain what you mean? Material UI, I believe, uses a it's own theme provider wrapper component. What would valtio really have to do here? I don't mean to knock down your suggestions at all so I hope this isn't coming across as such. I love the idea of getting content created that would bring more visibility and understanding to the library in whatever way that would be helpful and draw more attention. Is there a practical example you have in mind you'd like to see as a tutorial or something similar? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Valtio offers impressive advantages by eliminating the redundant/boiler pate code that Redux introduced. However, I'm struggling to find comprehensive real-world examples that seamlessly guide developers towards adopting Valtio. For instance, it would be immensely beneficial to have practical samples showcasing, for example, how to manage authentication, authorization info, current user information, or Material UI theme using Valtio. Such illustrative examples could significantly accelerate the learning curve and encourage wider adoption of Valtio within the development community.
Beta Was this translation helpful? Give feedback.
All reactions