redux-devtools/packages
Kevin Ghadyani 62957d2472
Added ability to display function name as actionType
The normal advice is that `actionType` should be a string. This is purely for debugging purposes. If the tools used for debugging are altered, then it would be easier to use something other than a string.

Using a function means you don't have to have a separate action variable from the action creator itself:
```js
some someActionCreator = () => ({
  type: someActionCreator,
})
```

Redux doesn't care if your action type is a string, object, symbol or whatever. Even @gaearon noted it should be a Symbol for uniqueness, but only said to use strings because of the debugging potential.

Another benefit of using functions is you're only comparing memory references rather than strings. This is a performance boost, but probably not one that will manifest in most applications.

We could even take this further to include `symbol.description` and `classInstance.constructor.name`.

The one downfall is most Redux tooling both utilizes and expects strings. This would need to change. Even `createReducer` would need to take a `Map` of actions instead of an `Object` or this wouldn't work.
2019-10-30 14:28:45 -05:00
..
d3tooltip Update babel 2019-02-06 01:59:55 +02:00
devui Update babel 2019-02-06 01:59:55 +02:00
map2tree Update babel 2019-02-06 01:59:55 +02:00
react-json-tree Update babel 2019-02-06 01:59:55 +02:00
redux-devtools Update babel 2019-02-06 01:59:55 +02:00
redux-devtools-cli Update babel 2019-02-06 01:59:55 +02:00
redux-devtools-core Update babel 2019-02-06 01:59:55 +02:00
redux-devtools-inspector Added ability to display function name as actionType 2019-10-30 14:28:45 -05:00
redux-devtools-instrument Prettify 2019-02-07 02:10:24 +02:00
redux-devtools-log-monitor Update babel 2019-02-06 01:59:55 +02:00
redux-devtools-test-generator Update babel 2019-02-06 01:59:55 +02:00
redux-devtools-trace-monitor Bump redux-devtools-trace-monitor 2019-02-07 02:10:39 +02:00
redux-slider-monitor Update babel 2019-02-06 01:59:55 +02:00