question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Better State Management

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:23 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
aidenybaicommented, Oct 25, 2020

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

1reaction
shadowtime2000commented, Oct 25, 2020

@aidenybai I didn’t have the time to play around with it but I believe l-watch is more of the Lucia version of React useEffect instead of more of the React useEffect dependency list. The current functionality is kind of nice so we could rename it to l-effect for side effects on render. I am looking into allowing Lucia to subscribe to value changes.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found