Re: Adding support for enums

2018-06-10 Thread kai zhu
> In Redux, there are actions, which are strings, that get passed to a > reducer, which mutates the states. My coworker and I inadvertently added the > same action name, "LOADING" on the same page, but in two different files. > This led to a bug when both my modal and his search results

Re: Adding support for enums

2018-06-10 Thread Nicolò Ribaudo
Have you seen https://github.com/rbuckton/proposal-enum? The champion is a TypeScript member, so he already had experienc with enums. On Sun, Jun 10, 2018 at 5:44 PM kai zhu wrote: > In Redux, there are actions, which are strings, that get passed to a > reducer, which mutates the states. My