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

Implement a hooks for persisting data on the frontend #38

Closed
stephane-segning opened this issue Mar 1, 2024 · 0 comments · Fixed by #100
Closed

Implement a hooks for persisting data on the frontend #38

stephane-segning opened this issue Mar 1, 2024 · 0 comments · Fixed by #100
Assignees

Comments

@stephane-segning
Copy link
Contributor

stephane-segning commented Mar 1, 2024

  • Description: I want to have a react hook I can use to persist data, of whatever type, on the frontend side. This would give me the possibility to save user data, but also transaction ID, and procedure ID

  • Implementation should be as follows:

    const [value, setValue] = useStorage('key')
    console.log('key', value)

    meaning that each time the useStorage hook is called with a key, we return an array of two values, the first being the value, and the second being the setter. And if we call the setter, then we also write into the storage

@stephane-segning stephane-segning moved this to Todo in Payment App Mar 1, 2024
@stephane-segning stephane-segning moved this from Todo to In Progress in Payment App Mar 6, 2024
@Christiantyemele Christiantyemele linked a pull request Apr 9, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from In Progress to Done in Payment App Apr 9, 2024
@Christiantyemele Christiantyemele self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants