Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
naught0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
naught0
2y ago
The example supplied is what I was trying to get at. An empty dependency array means that the effect runs only once on mount. Same with memos and callbacks -- the value should remain stable. Here's a real world example of how I populat
32.
▲
by
naught0
2y ago
React is the premier frontend framework because it is easy to learn, scales ad infinitum, and has reached a critical mass where the library support is second to none. Anyone advising juniors against learning React is shooting them in both
33.
▲
by
naught0
2y ago
Personally, I semi-regularly encounter instances where this rule must be ignored else I achieve an infinite re-render loop. Other times, it can be ignored, like when you use a stable value in the body of the memo or effect, like state s
34.
▲
by
naught0
2y ago
It sounds like something broken with this specific workflow. I use LSP features in typescript and python daily without issue. Don't use a tool that's broken for your work. There are plenty of bugs in other editors
35.
▲
by
naught0
3y ago
I mean I use tailwind or a framework like Chakra so yeah, my styling is typed or at the very least has robust editor support
36.
▲
by
naught0
3y ago
It's a plus to me
37.
▲
by
naught0
4y ago
Isn't television the same, then? Just with fewer creators and a much higher barrier to entry.