Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Persist Data #474

Open
albertoammar opened this issue Jul 30, 2022 · 6 comments
Open

Persist Data #474

albertoammar opened this issue Jul 30, 2022 · 6 comments

Comments

@albertoammar
Copy link

What would you like to be added:

Data persistence for hidden fields.

Why is this needed:

Sometimes selected fields can be temporarily removed, as an example of tabs, steps or filters on items.

Additional context

As an example below:

Each checkbox of this list has an "item.${id}", if I select the item and give the search when it goes to the original context, the item will no longer be selected, because for a while those items didn't exist.

image

@mrlonmra
Copy link

Boa observação!
Good Observation!

@lucaswitch
Copy link

This is helpful for modals and tab navigations, very common.
Very needed feature.

@guilhermekodenvis
Copy link

Yep. I see this error while navigating between tabs

@lucaswitch
Copy link

lucaswitch commented Jan 24, 2023

For solving this issue maybe you should save the form data between tabs on a useState prop or useRef for avoiding re-renders.

@guilhermekodenvis
Copy link

Guys, are you still giving support for unform?

@albertoammar
Copy link
Author

For solving this issue maybe you should save the form data between tabs on a useState prop or useRef for avoiding re-renders.

Yes, I never said there's no way to do it. But the point of the library is not to have to do these hacks, right?

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

No branches or pull requests

4 participants