Better State Management
See original GitHub issueIs your feature request related to a problem? Please describe.
It is kind of hard to manage state management links between Javascript and l-use
scope components.
Describe the solution you’d like
An l-watch
directive that points to a global that is checked on every render step to see if it changed, and if so, it would render the entire component.
Describe alternatives you’ve considered A render function that is attached to DOM elements that are components.
Issue Analytics
- State:
- Created 3 years ago
- Comments:23 (12 by maintainers)
Top Results From Across the Web
Top 6 React state management libraries for 2022
Top 6 React state management libraries for 2022 · Recoil · Jotai · Redux · Rematch · Zustand · Open Source Session Replay...
Read more >React State Management for Enterprise Applications - Toptal
React's useState is the best option for local state management. If you need a global state solution, the most popular ones are Redux,...
Read more >Top 7 React State Management Libraries in 2022 - GeekyAnts
Top 7 React State Management Libraries in 2022 · 1. Redux · 2. MobX / MobX-State-Tree · 3. XState · 4. Recoil ·...
Read more >How to manage your global state in a React app? | Medium
Redux is the leading state management library for React applications. It is a popular and widely used state management tool. It is used...
Read more >React state management: What is it and why to use it?
React components have a built-in state object. The state is encapsulated data where you store assets that are persistent between component renderings. The...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not sure yet - I think the best course of action could be to try to implement state management and see how it affects the code size or if it is possible with the current architecture. I guess we’ll just have to see how it goes and do it from there
@aidenybai I didn’t have the time to play around with it but I believe
l-watch
is more of the Lucia version of ReactuseEffect
instead of more of the ReactuseEffect
dependency list. The current functionality is kind of nice so we could rename it tol-effect
for side effects on render. I am looking into allowing Lucia to subscribe to value changes.