debian-mirror-gitlab/spec/frontend/notes/helpers.js
2020-11-24 15:15:51 +05:30

11 lines
195 B
JavaScript

export const resetStore = store => {
store.replaceState({
notes: [],
targetNoteHash: null,
lastFetchedAt: null,
notesData: {},
userData: {},
noteableData: {},
});
};