facebook / relay

Relay is a JavaScript framework for building data-driven React applications.
https://relay.dev
MIT License
18.36k stars 1.82k forks source link

[experimental] trying to import useQuery issues error #3141

Open Choongkyu opened 4 years ago

Choongkyu commented 4 years ago

hello. I'm trying to import useQueryLoader following the docs here but am getting this error: Module '"../node_modules/@types/react-relay/hooks"' has no exported member 'useQueryLoader' and I also briefly reviewed the source and wasn't able to find useQueryLoader. Is there anything I may need to do prior to trying to use useQueryLoader or can I be directed to API docs that reflect the current state of the API? Thank you.

Screen Shot 2020-07-21 at 4 33 33 PM
zth commented 4 years ago

That's the TypeScript types missing definitions for useQueryLoader. I think work is ongoing to update the definitions, but you should probably open this issue on that repo instead as the problem isn't with Relay itself - https://github.com/relay-tools/relay-compiler-language-typescript

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.