Now that React is moving towards having a compiler I wonder if conditional hooks are possible. IIRC the reason the Rules of Hooks™ exist is that conditionally calling hooks break because of different ordering between renders. 🤞
0 likes 3 replies
?
Now that React is moving towards having a compiler I wonder if conditional hooks are possible. IIRC the reason the Rules of Hooks™ exist is that conditionally calling hooks break because of different ordering between renders. 🤞
0 likes 3 replies