-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
way to use useQuery on pojo objects (outside of glimmer environment) #48
Comments
it will be great to have kinda to prevent memory leaks, |
once i'm trying to manually create owner, I see:
import { setOwner } from '@glimmer/owner';
const owner = {};
import setupApolloClient from './configs/apollo';
export const router = new Router({
main: '',
second: '/second'
});
setOwner(router, owner);
setupApolloClient(router); |
lol, it started working, once I'm deduplicated |
And it's partially solves problem I'm facing:
Given:
Problem:
@glimmer/ssr
does not support async logic insiderenderToString
functionSolution:
Request:
useQuery
inside "model" hook of router (without glimmer/ember application, because it will be attached later)Usecase example:
The text was updated successfully, but these errors were encountered: