Defer client hooks import to allow using env in them#8803
Defer client hooks import to allow using env in them#8803
Conversation
|
|
It's weird indeed that this makes things fail, don't have a good idea why just from looking at it - before this change, it was loaded even earlier (eagerly inside @dominikg you had ideas about some init hook that blocks starting the client until for example the language is determined. Would the timing of "create and init client -> run hooks -> hydrate and start router" be wrong for this use case? |
|
going to close this in favour of #8957, which is finally inching towards being shippable, after a detour that involved learning more than i ever thought i'd need to know about the behaviour of |
ref #8464
Need some insight on this commit, without it, all the tests start failing at random because it can't find the selector that's set on hydration, no matter what the timeout is. Although it seems like the wrong location to put it in.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.