Skip to content

Instantly share code, notes, and snippets.

@matthew-gerstman
Created August 23, 2018 14:40
Show Gist options
  • Save matthew-gerstman/fe22e16974ae0c706b085c33ae44ab65 to your computer and use it in GitHub Desktop.
Save matthew-gerstman/fe22e16974ae0c706b085c33ae44ab65 to your computer and use it in GitHub Desktop.
// data/wizards/selectors.ts
import { getStateAtNamespaceKey } from "../../redux-utils/selectors";
import { StoreShape, WIZARD_NAMESPACE_KEY } from "../../redux-utils/types";
import { mapValues } from "lodash";
import { Wizard } from "./types";
const getWizards = (state: StoreShape) => (
getStateAtNamespaceKey(state, WIZARD_NAMESPACE_KEY)
);
@vincentreynaud
Copy link

should there be an export in front of the const?

export const getWizards = ... 

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