apollographql / apollographql/fullstack-tutorial

Cart is empty after page reload

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
808
PR merge metrics
No merged PRs in 30d

Description

After adding an item to the cart, then clicking on cart, the item appears as expected. But when you reload the web page in the browser the cart becomes empty.

Also, after adding an item to the cart, the button becomes "REMOVE FROM CART". Then when that web page is reloaded, the same button reverts to "ADD TO CART".

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Reproduce the reload behavior, then trace how the React cart state is stored and restored through the Apollo/GraphQL client. Done means an added item and its REMOVE FROM CART state remain after reloading the page.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, react, typescript
Domain
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.