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

store.updateState #11

Open
lindelwa122 opened this issue Sep 28, 2023 · 3 comments
Open

store.updateState #11

lindelwa122 opened this issue Sep 28, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers to do Feature is required

Comments

@lindelwa122
Copy link
Owner

store.updateState

store

The store will hold variables that are intended to be accessible throughout the app. Users will be able to retrieve and modify these variables from anywhere within the app.

updateState

Parameters/Input:

  • key: string
  • newValue: any

The updateState() function takes a key and a newValue, and it updates the property associated with that key. If the key doesn't exist, it throws an error.

@lindelwa122 lindelwa122 added enhancement New feature or request good first issue Good for newcomers to do Feature is required labels Sep 28, 2023
@dipesh2508
Copy link
Contributor

So, I am working on this feature right now, will be updating the process

@dipesh2508
Copy link
Contributor

image
All Test Cases passed, will be raising a PR after a bit of documentation.

@dipesh2508
Copy link
Contributor

I've raised a PR, kindly check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers to do Feature is required
Projects
None yet
Development

No branches or pull requests

2 participants