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

setCustom setting entire value #699

Closed
mstelz opened this issue Sep 9, 2024 · 0 comments
Closed

setCustom setting entire value #699

mstelz opened this issue Sep 9, 2024 · 0 comments

Comments

@mstelz
Copy link

mstelz commented Sep 9, 2024

Describe the bug
I'd like to understand why I cannot set the entire value of custom at once using setCustom

To Reproduce
Steps to reproduce the behavior:

setCustom((custom: { someVal: any, data: any }) => {
      // custom.someVal = 'bob';
      // custom.data = data;
      custom = {someVal: 'bob', data}
    });

why can I set individual properties like the ones commented out and it works but I cannot set the entire value?

@mstelz mstelz closed this as completed Sep 27, 2024
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

No branches or pull requests

1 participant