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;