GithubHelp home page GithubHelp logo

Comments (7)

marktani avatar marktani commented on May 18, 2024 2

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.

tychota avatar tychota commented on May 18, 2024 1

@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.

marktani avatar marktani commented on May 18, 2024 1

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.

marktani avatar marktani commented on May 18, 2024

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.

marktani avatar marktani commented on May 18, 2024

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.

marktani avatar marktani commented on May 18, 2024

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.

marktani avatar marktani commented on May 18, 2024

Closing this. For more discussion add a comment or new issue.

from learnapollo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.