Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

JSX examples - Moving from Redux to Apollo Client 3 #20

Open
geekashu opened this issue Aug 10, 2020 · 0 comments
Open

JSX examples - Moving from Redux to Apollo Client 3 #20

geekashu opened this issue Aug 10, 2020 · 0 comments

Comments

@geekashu
Copy link

geekashu commented Aug 10, 2020

It would be great if we also have examples in JSX. I don't know typescript and would like to save myself from the hassle of learning it for now.

Also, I am having a hard time understanding on how to convert my existing redux based react code to Apollo Client 3.
Like,

  • How do I change my reducer code to make it work with AC3?
  • How do I migrate my reselect/actions/constants code to AC3?
  • I have multiple async polling in saga to fetch data (Time series graphs updating every 10 seconds). Can I migrate that as well?
  • I need to make requests to GraphQL end-point as well as REST end-points hosted on another domain. How can achieve both? Create multiple AC3 clients?

Is there any tutorial which may walk me through on converting the existing redux based app code to AC3 (NOT ac2)?

Edit:
Few more things I would like to understand -

  • What is the difference between Query and a custom type like Product when we define typePolicies? Is Query something global?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant