We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7d7535 commit 3d847abCopy full SHA for 3d847ab
1 file changed
src/examples/PlaygroundWikidata.tsx
@@ -81,11 +81,12 @@ export function PlaygroundWikidata() {
81
}
82
83
function ClearWikidataCacheAction() {
84
+ const {model} = Reactodia.useWorkspace();
85
return (
86
<Reactodia.ToolbarAction
87
title='Clear locally-cached data previously fetched from Wikidata'
88
onSelect={() => {
- const {model: {dataProvider}} = Reactodia.useWorkspace();
89
+ const {dataProvider} = model;
90
if (dataProvider instanceof Reactodia.IndexedDbCachedProvider) {
91
dataProvider.clearCache();
92
0 commit comments