Preact signals in Nextjs14 + AppRouter
I was trying to use signals within the setup above but either the signal updates but no re-rendering happens or I just get a server error.
The server error:
2 Replies
U need to use the signal useEffect i think its called effect to render when signal changes the if you want to toggle signal true and false you can do:
toOpen.value = !toOpen.value
The problem is that is throwing a server error that prevents the app to load just by defining the signal