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

Set function is not working #117

Open
Nivedha-Palani opened this issue Sep 22, 2020 · 2 comments
Open

Set function is not working #117

Nivedha-Palani opened this issue Sep 22, 2020 · 2 comments

Comments

@Nivedha-Palani
Copy link

I got a weird issue. Sometimes, the set function is not working. the value is not updating in Freezer. Still i'm seeing the older value. Please help me to handle this. After this, Even a onclick method is not working

@arqex
Copy link
Owner

arqex commented Sep 22, 2020

Be careful when caching the values of freezer, you might be trying to update a value that is not attached to the main freezer object.

Instead of doing

let e = freezer.get().e
// ....
e.set('foo', 'bar')

Try to always update from the freezer store directly

freezer.get().e.set('foo', 'bar')

@Nivedha-Palani
Copy link
Author

freezer.get().e.set('foo', 'bar')

I'm doing like this only. It is working fine but, sometimes it is not working . After that the application got freeze. we couldn't perform any other action.

while using pivot function to set multiple value, few values are updated. few are not updated. I couldn't able to figure out the issue

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

2 participants