facebook / facebook/relay

react-relay hooks is not called first time on render in React-native

Open
#4,075 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

i tried useQueryLoader/useLazyLoadQuery/fetchQueery/useQuery etc. i got text string must be render in text comment when called usePreloaded query in react-native i get data successfully without write usePreloadedQuery and pressing CMD+S in file where usQueryloader is called.

in react.js everything is working fine....

Documentation link : https://relay.dev/ graphql is imported from Relay hooks not from babel-plugin-relay/macros ,if i import from plugin throws error of 'crypto' module is not find and 'os' also some main file import.

Contributor guide

Open the contributing guide

Research direction

Start with the reported React Native hooks: useQueryLoader, useLazyLoadQuery, fetchQuery, useQuery, and usePreloadedQuery, using the linked Relay documentation as context. Reproduce the first-render behavior and compare it with the described React behavior; done means the query hook runs on the initial render without requiring CMD+S, while preserving the reported text-rendering and module errors as relevant symptoms.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.