#"No QueryClient set" error with app dir

1 messages · Page 1 of 1 (latest)

steady blade
#

Anyone have an idea why this may be? I am using the BlitzProvider returned by setupBlitzClient

fringe anvil
#

Is the BlitzProvider placed in the rootlayout?

steady blade
#

Yes

steady blade
fringe anvil
#

Hey sorry I missed replying. I am not sure about the way you setup your project. I could recommend to see my work in the pr https://github.com/blitz-js/blitz/pull/4146 mainly in the apps/next13 to have an idea how to set it up correctly.
I will complete the PR and add docs soon when I am able to spare some time.

GitHub

Closes: ?
What are the changes and their implications?
Bug Checklist

Changeset added (run pnpm changeset in the root directory)
Integration test added (see test docs if needed)

Feature Checklis...

#

@steady blade ^

steady blade
steady blade
#

I think it's because we are still using pages dir as well. Queries inside pages dir are breaking.

steady blade
#

Hi @fringe anvil , I just tested it and can confirm that is it due to using pages & app dir at the same time.

Wondering if you think this can be fixed? If not, we will just have to make the effort to transfer everything to app at once...

fringe anvil
steady blade
fringe anvil
#

Yeah, spent some time looking nothing yet.
I am not able to still find an example usage of plain react query on both app and pages simultaneously.

steady blade
fringe anvil
steady blade
fringe anvil
steady blade