You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-21 23:17:42 +02:00
All: Use Lerna to manage monorepo
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
import { useEffect } from 'react';
|
||||
import PlatformImplementation from '../../../services/plugins/PlatformImplementation';
|
||||
|
||||
export default function usePluginServiceRegistration(ref:any) {
|
||||
useEffect(() => {
|
||||
PlatformImplementation.instance().registerComponent('textEditor', ref);
|
||||
|
||||
return () => {
|
||||
PlatformImplementation.instance().unregisterComponent('textEditor');
|
||||
};
|
||||
}, []);
|
||||
}
|
Reference in New Issue
Block a user