janglad - For Next JS users, how do you guys ha...
For Next JS users, how do you guys handle setting a global error map? I'm not sure what the most elegant solution is here.
.setErrorMap()
.setErrorMap()
does what I want it do but it'd ideally run once before anything else on both server boot/before first render on the client.
Is it a bad idea to just call the function in my main layout (server side) and then have an empty client component above children there that also just calls it on every render (putting in a useEffect won't work as that runs after first render)