UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

18 lines 650 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useReplykeSelector = exports.useReplykeDispatch = void 0; const react_redux_1 = require("react-redux"); /** * Typed dispatch hook for Replyke. * Works in both standalone and integration modes. */ const useReplykeDispatch = () => (0, react_redux_1.useDispatch)(); exports.useReplykeDispatch = useReplykeDispatch; /** * Typed selector hook for Replyke state. * Works in both standalone and integration modes. * * State is always accessed via the 'replyke' namespace. */ exports.useReplykeSelector = react_redux_1.useSelector; //# sourceMappingURL=hooks.js.map