add an instant cache refresh to the editor

This commit is contained in:
41666 2022-02-04 11:59:11 -05:00
parent 68b2b7323b
commit 0836d548b2
6 changed files with 66 additions and 11 deletions

View file

@ -7,11 +7,21 @@ import {
export const EditorTemplate = (
props: EditorShellProps & Omit<AppShellProps, 'children'>
) => {
const { guild, onCategoryChange, onMessageChange, onGuildChange, ...appShellProps } =
props;
const {
guild,
onCategoryChange,
onMessageChange,
onGuildChange,
onRefreshCache,
...appShellProps
} = props;
return (
<AppShell {...appShellProps} activeGuildId={guild.id} small double>
<EditorShell guild={guild} onGuildChange={onGuildChange} />
<EditorShell
guild={guild}
onGuildChange={onGuildChange}
onRefreshCache={onRefreshCache}
/>
</AppShell>
);
};