Working around the fact that react's strict mode initializes compenents twice...
This commit is contained in:
1 parent
5867338836
commit
d015c4f1b9
2 files changed
+14
-5
No files matched your search
@@ -20,6 +20,9 @@ const slice = createSlice({
|
||||
action.payload.trkpt
|
||||
);
|
||||
},
|
||||
clearGPX(state, action) {
|
||||
state[action.payload.trkKey] = initialState.current;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user