Sha256: 0c3e2f82e71ca8cd85b7abd50c3009a7a22d4a2ba1fcf21578d855821bb30168
Contents?: true
Size: 978 Bytes
Versions: 2
Compression:
Stored size: 978 Bytes
Contents
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = __importDefault(require("react")); const useJason_1 = __importDefault(require("./useJason")); const react_redux_1 = require("react-redux"); const JasonContext_1 = __importDefault(require("./JasonContext")); const JasonProvider = ({ reducers, middleware, enhancers, extraActions, children }) => { const [store, value] = useJason_1.default({ reducers, middleware, enhancers, extraActions }); if (!(store && value)) return react_1.default.createElement("div", null); // Wait for async fetch of schema to complete return react_1.default.createElement(react_redux_1.Provider, { store: store }, react_1.default.createElement(JasonContext_1.default.Provider, { value: value }, children)); }; exports.default = JasonProvider;
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jason-rails-0.7.3 | client/lib/JasonProvider.js |
jason-rails-0.7.2 | client/lib/JasonProvider.js |