-
Notifications
You must be signed in to change notification settings - Fork 45
Apollo Client v3 Migration - Errors #543
Comments
Yes. We are actively trying to migrate to Apollo 3.0 and URQL but API changed so much that we need to design new system based off scheduler. Since Apollo 3.0 is just one big package you will get a lots of conflicts with classes that offix extends. We also use methods that Apollo team made private so we need to rewrite most of the code. Long story short is that we actually doing active development to get things working with Apollo. We hoping to get something there in couple weeks. In the meantime I will add a note to README that this library works with Apollo 2.0 and we are working on Apollo 3.0 integration |
I understand. Sounds good, thanks! |
Just found out this library. Can't wait to integrate it with my latest app. |
I think as team we experimented with Apollo 3.0 and URQL. Since 3.0 is well established we will remove support to Apollo 2.0 and release offix 1.0 with support for those libraries. For the moment we are working on Offix datastore that has Firebase like API |
@wtrocki Any ETA on the Apollo 3.0 support? Thanks!! |
TL;DR - Project is now shifting focus. We are planning Apollo 3.0 but it will not be added with the same API as Apollo 2.0 You going to get the same features and flexibility of current offix - with less reliance on specific version of the client. There are a number of factors here so please forgive me for long answer. Offix needs to diverge and change the approach a little bit. In the new office we will abstract from the graphql clients and move from apollo to general graphql (as we need to have a info about structure/ids etc.) We we hitting some issues with Apollo client - private methods that we cannot access and some performance issues when using the current approach from offix. https://offix.dev/docs/next/datastore/introduction This is still early alpha as we test it and bug-fixing it for the release this month. https://offix.dev/docs/next/offix/offix-scheduler-introduction This way we will get offline mutations/edits for Apollo/URQL and even REST - while still integrating with reliable client side database solution - you can use cache if you wish still but persistence is db. If you looking for Apollo 3.0 client migration that is probably not going to happen in 1-2 months, but we going to provide a comprehensive approach for client side database and replication - with problems that we think none of the clients resolve - things like updates for relationships, paginations optimistic responses are really hard on Apollo and most of the time our team were ending up helping other teams/companies to write them on top of apollo client (with some crazy amount of hacks for mitigating Apollo client bugs). The amount of time we helped other teams to write offix based solution could have been spent on writing better and more independent library. We know that Apollo team also plans to work on the storage and read-only offline support (stuff that URQL has already) so we do not want to really compete with the client own features, but progress on those were slow. Our scheduler can be used with the Apollo 3.0 already thus you going to get number of problems like need of mapping of the server side id's, cache invalidation on errors etc. that is simply going to consume a loot of time. As dev you can still pick it and make some simplification but providing generic and supportable solution here will require much more than that |
Since there is a number of people on this issue already we will be looking for your feedback on what would be the preferred option here. To make this more clear: Current state
Future
|
Is the new beta of offix (0.16.0) supposed to be working with |
@wtrocki are there any updates regarding Apollo Client v3 update? |
Hi all, we have made the decision to move away from the Apollo client and we have decided to deprecate our Offix packages and release our Datastore. This means that there are no plans to update Offix to support Apollo 3.0. I will be closing this issue, but if you have any questions, please feel free to let us know. You can see the docs for the updated datastore here: |
Hi,
I tried to get
offix
working withApollo Client v3 RC
. ButTypescript
is throwing these errors.I'm trying to implement in a ReactJS project.
Implementation
There was also an error in the
ApolloProvider
.Any plans to get it compatible/working with it?
I think v3 is very close to release, they are on RC.9. In the Releases tab, they left this note.
The text was updated successfully, but these errors were encountered: