Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign the ID back when creating a new userid in cookies #508

Closed
wants to merge 1 commit into from

Conversation

HendrikPetertje
Copy link

@HendrikPetertje HendrikPetertje commented Sep 25, 2023

Thanks for making this amazing tutorial, it's so nice!

While following the tutorial I noticed that one excersise would cause a 500 to be rendered the first time the code was loaded, as I made just one change the page would re-render and all would be fine.

Upon looking closer I noticed that map get was being called with undefined.

This little change makes sure db.getTodos(id) isn't called with undefined.

This to make sure db.getTodos(id) isn't called with undefined, which is currently raising 500 errors when a user loads the tutorial page for the first time (subsequent requests will have a userID, so this is just a blib on the radar.
@vercel
Copy link

vercel bot commented Sep 25, 2023

@HendrikPetertje is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@HendrikPetertje
Copy link
Author

HendrikPetertje commented Nov 10, 2023

oops. sorry i canceled this!

@HendrikPetertje
Copy link
Author

could this be reviewed?

@Rich-Harris
Copy link
Member

thanks! there's a few more places that need updating, so i'll close this in favour of #543

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants