Working around the fact that react's strict mode initializes compenents twice...

This commit is contained in:
vdv committed 2022-09-04 21:08:31 +02:00
1 parent 5867338836
commit d015c4f1b9
2 files changed
+14 -5

No files matched your search

+3
View File
@@ -20,6 +20,9 @@ const slice = createSlice({
action.payload.trkpt
);
},
clearGPX(state, action) {
state[action.payload.trkKey] = initialState.current;
},
},
});