Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
swap(ctx, state => ({
...state,
feeds: withKey(state.feeds, id, {
data: undefined,
error: undefined,
loaded: false,
loading: true,
}),
}));
swap(ctx, state => ({
...state,
registry: {
...state.registry,
searchProviders: withKey(state.registry.searchProviders, name, value),
},
}));
}
swap(ctx, state => ({
...state,
registry: {
...state.registry,
modals: withKey(state.registry.modals, name, value),
},
}));
}
swap(ctx, state => ({
...state,
feeds: withKey(state.feeds, id, {
loading: false,
loaded: true,
error,
data,
}),
}));
}
swap(ctx, state => ({
...state,
registry: {
...state.registry,
menuItems: withKey(state.registry.menuItems, name, value),
},
}));
}
swap(ctx, state => ({
...state,
registry: {
...state.registry,
tiles: withKey(state.registry.tiles, name, value),
},
}));
}