I had a nhost project pointing at a local docker backend, and was able to `useMutation` before, but now I'm pointing to an online installation at nhost.io. I've got user authentication kind of working, have set permissions, am logged in, but when I try with the new backend, I get "No Nhost client found".
Last active 4 months ago
4 replies
17 views
- MA
I had a nhost project pointing at a local docker backend, and was able to
useMutation
before, but now I'm pointing to an online installation at nhost.io. I've got user authentication kind of working, have set permissions, am logged in, but when I try with the new backend, I get "No Nhost client found". - MA
```export default ({ app }) => {
const nhost = new NhostClient({
subdomain: "localhost",
});// const nhost = new NhostClient({ // backendUrl: LOCAL, // }); const apolloClient = createApolloClient({ nhost }); provideApolloClient(apolloClient); app.use(nhost);
};
``` - MA
this is the quasar "boot" file for nhost i had working when i was using a local installation.
- MA
i think it was because i was using
useUserId()
inside a function, which I guess is wrong. Im new to Vue's composition API.
Last active 4 months ago
4 replies
17 views