mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 10:33:11 +03:00
- Patch @radix-ui/react-compose-refs@1.1.2: stabilize useComposedRefs to prevent infinite render loops from unstable ref callbacks https://github.com/radix-ui/primitives/issues/3799 - Patch @radix-ui/react-slot@1.2.4: use useComposedRefs hook in SlotClone instead of inline composeRefs to prevent re-render cycles https://github.com/radix-ui/primitives/pull/3804 - Patch react-use-websocket@4.8.1: remove flushSync wrappers that cause "Maximum update depth exceeded" with React 19 auto-batching https://github.com/facebook/react/issues/27613 - Add npm overrides to ensure single hoisted copies of compose-refs and react-slot across all Radix packages - Add postinstall script for patch-package - Remove leftover react-transition-group dependency
24 lines
1.5 KiB
Diff
24 lines
1.5 KiB
Diff
diff --git a/node_modules/react-use-websocket/dist/lib/use-websocket.js b/node_modules/react-use-websocket/dist/lib/use-websocket.js
|
|
index f01db48..b30aff2 100644
|
|
--- a/node_modules/react-use-websocket/dist/lib/use-websocket.js
|
|
+++ b/node_modules/react-use-websocket/dist/lib/use-websocket.js
|
|
@@ -139,15 +139,15 @@ var useWebSocket = function (url, options, connect) {
|
|
}
|
|
protectedSetLastMessage = function (message) {
|
|
if (!expectClose_1) {
|
|
- (0, react_dom_1.flushSync)(function () { return setLastMessage(message); });
|
|
+ setLastMessage(message);
|
|
}
|
|
};
|
|
protectedSetReadyState = function (state) {
|
|
if (!expectClose_1) {
|
|
- (0, react_dom_1.flushSync)(function () { return setReadyState(function (prev) {
|
|
+ setReadyState(function (prev) {
|
|
var _a;
|
|
return (__assign(__assign({}, prev), (convertedUrl.current && (_a = {}, _a[convertedUrl.current] = state, _a))));
|
|
- }); });
|
|
+ });
|
|
}
|
|
};
|
|
if (createOrJoin_1) {
|