lens-protocol / lens-sdk

The official SDK to interact with the Lens Protocol
https://docs.lens.xyz/docs/what-is-lens
MIT License
235 stars 75 forks source link

react: enable profile field policy #901

Closed krzysu closed 7 months ago

krzysu commented 7 months ago

when I try to read a profile by a handle in the field policy, I'm getting an apollo error, this could be because of react strict mode

if (args.request?.forHandle) {

  const profile = cache.readQuery({
    query: ProfileDocument,
    variables: variables,
  });

  console.log('profile', profile);
}
Screenshot 2024-04-04 at 14 46 28
changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: 02967d120c3325be92296e1000ae6e3096dbda67

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages | Name | Type | | --------------------------- | ----- | | @lens-protocol/api-bindings | Patch | | @lens-protocol/react-native | Patch | | @lens-protocol/react | Patch | | @lens-protocol/react-web | Patch | | @lens-protocol/wagmi | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

height[bot] commented 7 months ago

This pull request has been linked to 1 task:

💡Tip: Add "Close T-19465" to the pull request title or description, to a commit message, or in a comment to mark this task as "Done" when the pull request is merged.

vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
lens-sdk-example-web-wagmi ✅ Ready (Inspect) Visit Preview Apr 11, 2024 10:34am