Saúl Ibarra Corretgé
0e92e73789
chore: use strings as action types
...
Using anything non-serializable for action types is discouraged:
https://redux.js.org/faq/actions#actions
In fact, this is the Flow definition for dispatching actions:
declare export type DispatchAPI<A> = (action: A) => A;
declare export type Dispatch<A: { type: $Subtype<string> }> = DispatchAPI<A>;
Note how the `type` field is defined as a subtype of string, which Symbol isn’t.
2019-03-21 14:47:55 +01:00
..
2018-11-21 08:08:45 -08:00
2019-03-12 16:48:08 +01:00
2019-03-19 10:35:36 -07:00
2018-11-07 17:38:10 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-12 23:03:58 +00:00
2018-11-07 17:38:10 +01:00
2019-02-05 23:13:59 +00:00
2019-03-21 14:47:55 +01:00
2019-03-07 01:09:03 +01:00
2019-03-21 14:47:55 +01:00
2019-01-16 11:03:29 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2018-11-07 17:38:10 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-07 01:09:03 +01:00
2019-03-07 01:09:03 +01:00
2018-12-18 13:21:48 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-07 01:09:03 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00
2018-11-07 17:38:10 +01:00
2019-03-21 14:47:55 +01:00
2019-03-07 01:09:03 +01:00
2019-03-21 14:47:55 +01:00
2019-03-21 14:47:55 +01:00