Comments (7)
All exercises should be broken down into small high level steps ("build a pokemon card component") to reach the result of the exercise. Each implementation (React/RN/Angular/...) should break these steps further down into low level steps ("we will use React Router to realize routes").
Each exercise should contribute to at least one topic in #1 (with exceptions).
For the actual exercise chapter on the website, both the high level and low level steps should be conveyed.
from learnapollo.
@marktani : for me this is not necessary to start with !
This can be cover in step 03.
While Apollo can do basic caching based on the shape of GraphQL queries and their results, Apollo wonβt be able to associate objects fetched by different queries without additional information about the identities of the objects returned from the server.
from learnapollo.
Yea that's right. I moved it down to 04, because the pokemon preview card will use a different query than the overview component in step 04. Before that, we only have one query for pokemons so there is no need for this data normalization step.
from learnapollo.
I just added Data normalization using dataIdFromObject
to the first exercise: http://dev.apollodata.com/react/cache-updates.html#dataIdFromObject
This is needed for consistent data.
from learnapollo.
I added Data Caching
as a topic we should talk about in #1. I think we can briefly mention that things are cached in exercise 02 and once we cover data normalization we could expand on this topic.
from learnapollo.
I'm thinking about moving the updatePokemon
mutation to 05, while having deletePokemon
and createPokemon
in 06.
The reasoning is that automatic refresh can be accomplished by just using dataIdFromObject
and including the changed fields in the mutation results for updatePokemon
. For createPokemon
and deletePokemon
we have to additionally use updateQueries
or reducer
to accomplish the same.
Additionally, I think that showing the optimistic UI feature only works with updateMutation
, so I'd move that to 05 as well.
Edit: I'm going with what we have for now and see how that works out π
from learnapollo.
Closing this. For more discussion add a comment or new issue.
from learnapollo.
Related Issues (20)
- react-scripts is not recognized after `npm install` HOT 7
- Remove side effect in render HOT 3
- Atom editor complains about missing eslint-plugin-flowtype HOT 3
- Tutorial for Advanced techniques
- Exponent became expo HOT 1
- Inline links to GraphQL Docs
- Consistent Misspelling: It's 'Pokemon', not 'Pokemons'
- Download doesn't work
- Redirect after signup doesn't work
- exercize-03, dependencies HOT 3
- Exercize-04 react-native, can't find variable error HOT 2
- Doubt: Removing Trainer Section in AddPokemonCard.js After Adding forcefetch field in Pokedex.js HOT 2
- Add link to actual source code
- Can't access interactive tutorial HOT 8
- TrainerQuery always returns a null HOT 2
- API contents not created HOT 5
- Issue Loading Trainer Data, Exercise 2 HOT 2
- Chat button styling is wrong
- Fix CORS HOT 4
- Update Apollo Examples to use 2.1 best practices HOT 2
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 learnapollo.