Hello, while developing I would like to disable reselect and just hit the regular non cached method. Is this possible?
This is best done in user land; Something like :
// utils/createSelector.js
import { createSelector as defaultCreateSelector, createSelectorCreator } from 'reselect'
export const createSelector = process.env.NODE_ENV === 'production'
? defaultCreateSelector
: createSelectorCreator(func => func)
and always use that local version.
Didn't test that code but you get the idea :)
Thanks @AlexGalays, worked great. Not sure why this is not the default behavior though.
Most helpful comment
Thanks @AlexGalays, worked great. Not sure why this is not the default behavior though.