dash.exceptions.InvalidCallbackReturnValue:
The callback for property `data`
of component `localStore` returned a value
which is not JSON serializable.
In general, Dash properties can only be
dash components, strings, dictionaries, numbers, None,
or lists of those.
It’s unfortunate that dcc.Store only supports json serializable variables. I’ve managed to make it work for my purposes by writing my own Object -> string -> Object; that being said, it would be nice if dcc.Store dealt with any object.
Also, it would be useful to specify whether the data is stored client or server side, and what happens when it is used in a callback (is it sent to the server everytime?). What about when the server updates the data; is that sent back to the client?