Added force update option to useNetworkedState

This commit is contained in:
Mitchell McCaffrey
2021-01-03 16:45:55 +11:00
parent d1315b3425
commit 852d5bce81
2 changed files with 14 additions and 4 deletions
+2 -2
View File
@@ -171,7 +171,7 @@ function NetworkedMapAndTokens({ session }) {
}, [currentMap, debouncedMapState, userId, database]);
function handleMapChange(newMap, newMapState) {
setCurrentMapState(newMapState);
setCurrentMapState(newMapState, true, true);
setCurrentMap(newMap);
if (newMap && newMap.type === "file") {
@@ -189,7 +189,7 @@ function NetworkedMapAndTokens({ session }) {
}
function handleMapStateChange(newMapState) {
setCurrentMapState(newMapState);
setCurrentMapState(newMapState, true, true);
}
function addMapDrawActions(actions, indexKey, actionsKey) {