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

wip: adding form clear on reload #11

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

wip: adding form clear on reload #11

wants to merge 6 commits into from

Conversation

InsaneZein
Copy link
Contributor

I'm trying to add a form clear, but I've got one little hiccup: if I click "reset", the form clears but the list fields don't go away

image

@vercel
Copy link

vercel bot commented Sep 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
twotop ✅ Ready (Inspect) Visit Preview Sep 22, 2022 at 3:18PM (UTC)

@ryelo
Copy link
Member

ryelo commented Sep 20, 2022

@InsaneZein does this reset the fields when moving around the site or just when you remount the page?

@InsaneZein
Copy link
Contributor Author

@InsaneZein does this reset the fields when moving around the site or just when you remount the page?

When you move around the site. It resets it whenever the page gets initialized.

@ryelo
Copy link
Member

ryelo commented Sep 22, 2022

@InsaneZein can we hold this PR until I lock the submit button behind auth. I don't want people to have to navigate away and then lose all of their recipe if they've already started it

Also, I want to make sure that if a person generates their recipe and then wants to go back to edit it, that it doesn't get removed from state

@vercel vercel bot temporarily deployed to Preview September 22, 2022 15:18 Inactive
@InsaneZein
Copy link
Contributor Author

Also, I want to make sure that if a person generates their recipe and then wants to go back to edit it, that it doesn't get removed from state

I'm currently working on this part. I'm having trouble figuring out how to get back to the BuilderForm route with existing data.

@render
Copy link

render bot commented Sep 23, 2022

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