UNPKG

react-keep-alive

Version:

Package will allow components to maintain their status, to avoid repeated re-rendering.

19 lines (18 loc) 533 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.warn = function () { return undefined; }; if (process.env.NODE_ENV !== 'production') { /** * Prints a warning in the console if it exists. * * @param {*} message */ exports.warn = function (message) { if (typeof console !== undefined && typeof console.error === 'function') { console.error(message); } else { throw new Error(message); } }; }