Skip to content

Commit

Permalink
disable serializableCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVann committed May 16, 2020
1 parent 0057876 commit 025bcc6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions aiortc/src/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -21,7 +21,10 @@ const store = configureStore({
peers,
consumers,
dataConsumers
}
},
middleware : getDefaultMiddleware({
serializableCheck : false
})
});

RoomClient.init({ store });
Expand Down
7 changes: 5 additions & 2 deletions app/lib/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -38,7 +38,10 @@ const store = configureStore({
consumers,
dataConsumers,
notifications
}
},
middleware : getDefaultMiddleware({
serializableCheck : false
})
});

window.STORE = store;
Expand Down

0 comments on commit 025bcc6

Please sign in to comment.