reduxjs / redux-toolkit

The official, opinionated, batteries-included toolset for efficient Redux development
https://redux-toolkit.js.org
MIT License
10.76k stars 1.18k forks source link

Re-export setGlobalDevModeChecks from reselect #4681

Open nodwyer4 opened 1 month ago

nodwyer4 commented 1 month ago

Hi, we'd love the ability to directly import setGlobalDevModeChecks from @reduxjs/toolkit rather than importing the values from reselect

We are importing it currently using this so that we can run our test files without the stability checks for performance reasons. We have these turned back on for our tests in CI

const { setGlobalDevModeChecks } = require(
    require.resolve("reselect", {
        paths: [require.resolve("@reduxjs/toolkit")],
    }),
);

Your current exports for re-select

export type { Selector, OutputSelector } from 'reselect'

Happy to raise a pr to change to this, as long as you are happy with the change

export type { Selector, OutputSelector, setGlobalDevModeChecks } from 'reselect'