freezer icon indicating copy to clipboard operation
freezer copied to clipboard

Set function is not working

Open Nivedha-Palani opened this issue 4 years ago • 2 comments

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

Nivedha-Palani avatar Sep 22 '20 16:09 Nivedha-Palani

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')

arqex avatar Sep 22 '20 17:09 arqex

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

Nivedha-Palani avatar Sep 22 '20 17:09 Nivedha-Palani