Comments (11)
I'm planning to work on this on couple of weeks but PR's welcome :) @lolcoolkat
from ran.
@Sly777 looking forward to this PR, and thank you for your work.
from ran.
Any update on this?
from ran.
hi, any update on this? :)
from ran.
Something to note, they’ve remove Redux as the default cache for Apollo. Redux (as well as other stores) can still be used with configuration.
from ran.
I am extremely grateful for @sly77's contribution to the community. As a new user, this template looks like an amazing place to start containing much that I need to learn about. Please don't lose momentum on this amazing project.
from ran.
Hey @willopez & @Enalmada! Honestly, I couldn't continue on this issue because of my new job and other changes. It would be really nice if someone helps me on this :)
from ran.
I totally know how that goes! I hope that someone watching that has some apollo experience would be willing to give back to the community and do this upgrade. I looked at the upgrade docs and they don't look too bad: https://www.apollographql.com/docs/apollo-server/v2/migration-two-dot.html
(I am currently just evaluating potential tech for upgrading our site and have not actually used any of the RAN tech yet but this template gives me confidence RAN is the way to go and will contribute in the future as I get up to speed)
from ran.
I was working on this last weekend but I realized the biggest issue is the new local cache feature of Apollo. It doesn't fit redux well and I need to change the structure without redux which nobody wants I think :) I also tried to find redux plugins for this but there is no good option to integrate into RAN. So I stuck a little bit because of redux. I also thought maybe we can use something like this;
<Provider store={store}>
<ApolloProvider client={client}>
<Component {...props} />
</ApolloProvider>
</Provider>
But in this structure, there are some missing parts between Apollo and Redux.
So it's open for any suggestions.
from ran.
Experienced users will struggle emotionally with eliminating redux from their stack but based on my research it might be the right thing to do:
The new apollo is trying to intentionally and conveniently eliminate the cognitive and maintenance overhead of maintaining a separate local store (link). Relay is also going that direction. I believe users discovering RAN are mostly newer and wanting to learn production best practices and optimizations. There is no doubt they need to learn a graphql client. The question experienced users need to try and answer as unemotionally as possible...can the current version of apollo client (and perhaps some context) eliminate the price to learn and maintain redux or do new users still need it?
ReasonReact, what Facebook is migrating their internal production into, comes with the concept of reducer built into the language. The combination of this plus graphql client local store continually improving I believe is going to completely deprecate redux. Knowing redux is likely not part of our future might help people accept moving away from it now.
This thread here is valuable reading for anyone willing to help evaluate the pros/cons of potential best ways forward based on where we are at (linking directly to some real examples that might help but read the whole thread).
@Sly777 Perhaps this apollo-cache-redux could help bridge the gap which I saw in this thread? (actually doesn't feel like it supports redux 4 or is going to be maintained)
from ran.
Thanks to @gufranmirza, RAN started to use new react apollo from now on!!
from ran.
Related Issues (20)
- Travis CI build fail HOT 1
- [SOLVED] Router expected '/' but got 'index' - build:static_export HOT 1
- newer compression module HOT 3
- ReasonReact sample page HOT 2
- server.js contains some resolves that don't exist
- polyfill.io service HOT 1
- 402 payment required... Repo no longer maintained? HOT 2
- Is there a backend to this? [Question] HOT 4
- Integrate React-Intl?
- Next.js 8
- being logged out after refreshing
- Prisma support
- Cannot convert object to primitive value HOT 4
- Can't import scss file
- Can't deploy ran project to now
- Cannot run IE browser
- Wildcard instead of GraphQL?
- now.sh website is down due to deprecation of 1.0 deployments HOT 1
- New version is coming with full update :) HOT 7
- Error on Clean Setup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ran.