Sha256: d760ae41056b758058dbbf9feba27f03366f0ed27a82da30dda5bffe2a2c6d94
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 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 JasonContext_1 = __importDefault(require("./JasonContext")); const react_1 = require("react"); function useSub(config) { const subscribe = react_1.useContext(JasonContext_1.default).subscribe; react_1.useEffect(() => { // @ts-ignore return subscribe(config); }, []); } exports.default = useSub;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jason-rails-0.5.0 | client/lib/useSub.js |