@rc-component/portal
Advanced tools
Comparing version 1.0.0-7 to 1.0.0-8
@@ -5,2 +5,3 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
import useLayoutEffect from "rc-util/es/hooks/useLayoutEffect"; | ||
import canUseDom from "rc-util/es/Dom/canUseDom"; | ||
import OrderContext from "./Context"; | ||
@@ -15,2 +16,6 @@ var EMPTY_LIST = []; | ||
var _React$useState = React.useState(function () { | ||
if (!canUseDom()) { | ||
return null; | ||
} | ||
var defaultEle = document.createElement('div'); | ||
@@ -17,0 +22,0 @@ |
@@ -20,2 +20,4 @@ "use strict"; | ||
var _canUseDom = _interopRequireDefault(require("rc-util/lib/Dom/canUseDom")); | ||
var _Context = _interopRequireDefault(require("./Context")); | ||
@@ -31,2 +33,6 @@ | ||
var _React$useState = React.useState(function () { | ||
if (!(0, _canUseDom.default)()) { | ||
return null; | ||
} | ||
var defaultEle = document.createElement('div'); | ||
@@ -33,0 +39,0 @@ |
{ | ||
"name": "@rc-component/portal", | ||
"version": "1.0.0-7", | ||
"version": "1.0.0-8", | ||
"description": "React Portal Component", | ||
@@ -39,4 +39,6 @@ "keywords": [ | ||
"start": "dumi dev", | ||
"test": "umi-test", | ||
"test:coverage": "umi-test --coverage", | ||
"test": "npm run test:client && npm run test:server", | ||
"test:client": "umi-test --testPathIgnorePatterns=ssr.test.tsx --testPathIgnorePatterns=ssr.test.tsx", | ||
"test:coverage": "npm run test:client --coverage", | ||
"test:server": "umi-test --env=node tests/ssr.test.tsx", | ||
"watch": "father dev" | ||
@@ -43,0 +45,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24865
480