@mui/x-internals
Advanced tools
@@ -9,2 +9,6 @@ type Listener<T> = (value: T) => void; | ||
| subscribe: (fn: Listener<State>) => () => void; | ||
| /** | ||
| * Returns the current state snapshot. Meant for usage with `useSyncExternalStore`. | ||
| * If you want to access the state, use the `state` property instead. | ||
| */ | ||
| getSnapshot: () => State; | ||
@@ -11,0 +15,0 @@ setState(newState: State): void; |
@@ -24,2 +24,7 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
| }; | ||
| /** | ||
| * Returns the current state snapshot. Meant for usage with `useSyncExternalStore`. | ||
| * If you want to access the state, use the `state` property instead. | ||
| */ | ||
| getSnapshot = () => { | ||
@@ -26,0 +31,0 @@ return this.state; |
+1
-1
| { | ||
| "name": "@mui/x-internals", | ||
| "version": "8.21.0", | ||
| "version": "8.22.0", | ||
| "author": "MUI Team", | ||
@@ -5,0 +5,0 @@ "description": "Utility functions for the MUI X packages (internal use only).", |
+4
-0
@@ -9,2 +9,6 @@ type Listener<T> = (value: T) => void; | ||
| subscribe: (fn: Listener<State>) => () => void; | ||
| /** | ||
| * Returns the current state snapshot. Meant for usage with `useSyncExternalStore`. | ||
| * If you want to access the state, use the `state` property instead. | ||
| */ | ||
| getSnapshot: () => State; | ||
@@ -11,0 +15,0 @@ setState(newState: State): void; |
+5
-0
@@ -31,2 +31,7 @@ "use strict"; | ||
| }; | ||
| /** | ||
| * Returns the current state snapshot. Meant for usage with `useSyncExternalStore`. | ||
| * If you want to access the state, use the `state` property instead. | ||
| */ | ||
| getSnapshot = () => { | ||
@@ -33,0 +38,0 @@ return this.state; |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
681235
0.95%3600
0.45%