You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails becasue the state is initialized as state: ['X', 'Y'], but then internally transformed into: {'0':'X, '1': 'Y'} (which does not have join, map or other array methods)
I believe this is a bug. Or it should be documented.
The text was updated successfully, but these errors were encountered:
@zaceno Yes, you are right. Currently the only supported state types are object, string and number. We should write a proper essay on the state property and include this detail here.
This example does not work as expected: https://codepen.io/zaceno/pen/RgqOzL
It fails becasue the state is initialized as
state: ['X', 'Y']
, but then internally transformed into:{'0':'X, '1': 'Y'}
(which does not havejoin
,map
or other array methods)I believe this is a bug. Or it should be documented.
The text was updated successfully, but these errors were encountered: