From 025bcc64ebff4ca534820757a62df42d972aeafc Mon Sep 17 00:00:00 2001 From: Dylan Vann Date: Sat, 16 May 2020 14:27:52 -0400 Subject: [PATCH] disable serializableCheck --- aiortc/src/index.ts | 7 +++++-- app/lib/index.jsx | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/aiortc/src/index.ts b/aiortc/src/index.ts index c6873efa6..83400bbb7 100644 --- a/aiortc/src/index.ts +++ b/aiortc/src/index.ts @@ -1,5 +1,5 @@ import * as repl from 'repl'; -import { configureStore } from '@reduxjs/toolkit'; +import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit'; import { Logger } from './Logger'; import { RoomClient } from './RoomClient'; import room from './redux/reducers/room'; @@ -21,7 +21,10 @@ const store = configureStore({ peers, consumers, dataConsumers - } + }, + middleware : getDefaultMiddleware({ + serializableCheck : false + }) }); RoomClient.init({ store }); diff --git a/app/lib/index.jsx b/app/lib/index.jsx index 9ffca1026..602fd7e93 100644 --- a/app/lib/index.jsx +++ b/app/lib/index.jsx @@ -5,7 +5,7 @@ import { render } from 'react-dom'; import { Provider } from 'react-redux'; import randomString from 'random-string'; import * as faceapi from 'face-api.js'; -import { configureStore } from '@reduxjs/toolkit'; +import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit'; import Logger from './Logger'; import * as utils from './utils'; import randomName from './randomName'; @@ -38,7 +38,10 @@ const store = configureStore({ consumers, dataConsumers, notifications - } + }, + middleware : getDefaultMiddleware({ + serializableCheck : false + }) }); window.STORE = store;