Aaron Pettengill@pettengill.devI just realized you can lazy load hooks like this.31/1/25, 9:12 pm·0 reposts·3 likes
Aaron Pettengill@pettengill.dev31 Jan 2025I haven't tried the React compiler so that's totally possible. But since the promise has a consistent identity on every render this seems like it should be okay. Also worth noting that this is in a SPA so it's client-side code.1
Aaron Pettengill@pettengill.dev1 Feb 2025I guess that last part is obvious actually. Shows how little time I've spent with server components 😭