Skip to content

Commit 00c966a

Browse files
committed
chore(package): Bump version and refactor core index
1 parent f0ab1b5 commit 00c966a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-scan",
3-
"version": "0.0.30",
3+
"version": "0.0.31",
44
"description": "Scan your React app for renders",
55
"keywords": [
66
"react",
@@ -9,7 +9,7 @@
99
"render",
1010
"performance"
1111
],
12-
"homepage": "https://github.com/aidenybai/react-scan#readme",
12+
"homepage": "https://react-scan.million.dev",
1313
"bugs": {
1414
"url": "https://github.com/aidenybai/react-scan/issues"
1515
},

src/core/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export const withScan = <T>(
344344
) => {
345345
setOptions(options);
346346
const { isInIframe, componentAllowList } = ReactScanInternals;
347-
if (isInIframe || options.enabled === false) return component;
347+
if (isInIframe) return component;
348348
if (!componentAllowList) {
349349
ReactScanInternals.componentAllowList = new WeakMap<
350350
React.ComponentType<any>,
@@ -363,7 +363,7 @@ export const withScan = <T>(
363363
export const scan = (options: Options = {}) => {
364364
setOptions(options);
365365
const { isInIframe } = ReactScanInternals;
366-
if (isInIframe || options.enabled === false) return;
366+
if (isInIframe) return;
367367

368368
start();
369369
};

0 commit comments

Comments
 (0)