(editor: Editor, component: React.FC)
| 47 | }, |
| 48 | |
| 49 | unmount(editor: Editor, component: React.FC) { |
| 50 | const store = getStore(editor) |
| 51 | store.setState(state => { |
| 52 | const { components } = state |
| 53 | if (!components.some(c => c.component === component)) return state |
| 54 | return { |
| 55 | components: components.filter(c => c.component !== component), |
| 56 | } |
| 57 | }) |
| 58 | }, |
| 59 | |
| 60 | update: <T extends SlotComponentProps>( |
| 61 | editor: Editor, |
nothing calls this directly
no test coverage detected