Set fingerprint locally to avoid webgl rerenders + mem leaks BOD-132

This commit is contained in:
Patrick Fic
2020-05-22 08:45:09 -07:00
parent f631b91b18
commit 19eceae2b9
4 changed files with 14 additions and 12 deletions

View File

@@ -6,12 +6,15 @@ const INITIAL_STATE = {
//language: "en-US"
},
bodyshop: null,
fingerprint: null,
error: null,
conflict: false,
};
const userReducer = (state = INITIAL_STATE, action) => {
switch (action.type) {
case UserActionTypes.SET_LOCAL_FINGERPRINT:
return { ...state, fingerprint: action.payload };
case UserActionTypes.SET_INSTANCE_ID:
return { ...state, conflict: false };
case UserActionTypes.SET_INSTANCE_CONFLICT: