(kind: Kind)
| 103 | } |
| 104 | |
| 105 | function useDisplayExample(kind: Kind) { |
| 106 | const editor = useEditor("main"); |
| 107 | const incrEditorInitCount = useStatusStore((state) => state.incrEditorInitCount); |
| 108 | |
| 109 | useEffect(() => { |
| 110 | if (kind === "main" && editor && incrEditorInitCount() <= 1) { |
| 111 | editor.parseAndSet(example); |
| 112 | } |
| 113 | }, [editor]); |
| 114 | } |
no test coverage detected