We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af1600e commit 465300cCopy full SHA for 465300c
src/plugin.tsx
@@ -3,6 +3,7 @@ import {DrawerPlugin} from "oflow-interface";
3
import {loadApi} from "./api";
4
import React from 'react';
5
import Drawer from "./drawer/drawer";
6
+import {proxy} from "valtio";
7
8
9
export default class Plugin implements DrawerPlugin {
@@ -15,7 +16,9 @@ export default class Plugin implements DrawerPlugin {
15
16
type: PluginType = PluginType.DRAWER
17
theme: ThemeColor = ThemeColor.BLUE
18
- data = {}
19
+ data = proxy({
20
+
21
+ })
22
23
async onInstall() {
24
loadApi()
0 commit comments