Clean up imports

This commit is contained in:
Mitchell McCaffrey 2021-01-02 09:13:26 +11:00
parent a146495326
commit f24156c44c
4 changed files with 4 additions and 6 deletions

View File

@ -18,7 +18,6 @@
"dexie": "^3.0.3",
"err-code": "^2.0.3",
"fake-indexeddb": "^3.1.2",
"fast-deep-equal": "^3.1.3",
"fuse.js": "^6.4.1",
"interactjs": "^1.9.7",
"konva": "^7.1.8",

View File

@ -1,5 +1,4 @@
import React, { useEffect, useContext, useState } from "react";
import compare from "fast-deep-equal";
import React, { useEffect, useContext } from "react";
import useNetworkedState from "../helpers/useNetworkedState";
import DatabaseContext from "./DatabaseContext";

View File

@ -10,7 +10,7 @@ import { useToasts } from "react-toast-notifications";
// Load session for auto complete
// eslint-disable-next-line no-unused-vars
import Session from "./Session";
import { isStreamStopped, omit, difference } from "../helpers/shared";
import { isStreamStopped, omit } from "../helpers/shared";
import PartyContext from "../contexts/PartyContext";
@ -73,7 +73,7 @@ function NetworkedParty({ gameId, session }) {
}
joinedPlayersRef.current = [];
}
}, [partyState]);
}, [partyState, addToast]);
useEffect(() => {
function handlePlayerJoined(sessionId) {

View File

@ -5451,7 +5451,7 @@ fake-indexeddb@^3.1.2:
realistic-structured-clone "^2.0.1"
setimmediate "^1.0.5"
fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
fast-deep-equal@^3.1.1:
version "3.1.3"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==