Redux generator is not upcasing anymore #578

skellock opened this Issue Jan 3, 2017 · 1 comment


None yet

2 participants

skellock commented Jan 3, 2017

When you ignite g redux Foo, the FooRedux.js has the createReducer() block that looks like this:

/* ------------- Hookup Reducers To Types ------------- */

export const reducer = createReducer(INITIAL_STATE, {
  [Types.Foo_REQUEST]: request,
  [Types.Foo_SUCCESS]: success,
  [Types.Foo_FAILURE]: failure

Those Types.Foo need to be uppercase for this to work.

This fix #531 should be uppercased after splitting on the _ boundaries.

Found by Thiemo Bleeken @thiemo--bleeken in the Gitter channel.

@skellock skellock added the bug label Jan 3, 2017
@GantMan GantMan closed this Jan 22, 2017

Just a heads up. This is merged, but not released yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment