We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f36e5 commit b8fd9f3Copy full SHA for b8fd9f3
src/controllers/resource-store/index.tsx
@@ -209,9 +209,9 @@ export const actions: Actions = {
209
resources.forEach(resource => {
210
const { type, getKey } = resource;
211
const key = getKey(routerStoreContext, resourceContext);
212
- const slice = getSliceForResource({ data }, { type, key });
+ const slice = data[type]?.[key];
213
214
- if (!slice.expiresAt || slice.expiresAt < Date.now()) {
+ if (slice && (!slice.expiresAt || slice.expiresAt < Date.now())) {
215
dispatch(deleteResourceKey(key, type));
216
}
217
});
0 commit comments