apollographql / apollographql/docs-examples

Bad TODO List Example

Open
#151 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
55
Forks
42
PR merge metrics
No merged PRs in 30d

Description

The error is in this link:
const serverURL = '[https://uofye.sse.codesandbox.io/](https://uofye.sse.codesandbox.io/)';

The TodoList example in [docs](https://www.apollographql.com/docs/react/performance/optimistic-ui#:~:text=object%20is%20cached.-,View%20on%20CodeSandbox,-You%20can%20view) is a bad example as it returns an error:
image

When you try to create an item, it throws the following:

image

The sandbox environment also doesn't work and cloning the docs-examples repo and locally running the server and client also results in the same error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the TodoList example linked from the Apollo optimistic UI documentation and reproduce the error when creating an item in its CodeSandbox. Compare that result with the locally cloned docs-examples repository; done means the example runs successfully and creating an item no longer throws the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, react, typescript
Domain
documentation, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.