Black Lives Matter. Please consider donating to Black Girls Code today.

Store Component Bugged

Passed in a dictionary to store component and it changed the dictionary keys from int to string for no reason.

The dictionary gets stored as JSON which must have keys as strings. When you deserialise there’s no way of knowing if it was a string or integer originally, so I don’t think there’s a way around this.

Alright that makes sense. I guess just something to keep in mind when using store component. Thanks Tom!

1 Like