File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
examples/07-collaboration/07-forking Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,31 +33,31 @@ export default function App() {
3333 const [ isForked , setIsForked ] = useState ( false ) ;
3434
3535 useEffect ( ( ) => {
36- editor . forkYDocPlugin . on ( "forked" , setIsForked ) ;
36+ editor . forkYDocPlugin ! . on ( "forked" , setIsForked ) ;
3737 } , [ editor ] ) ;
3838
3939 // Renders the editor instance.
4040 return (
4141 < >
4242 < button
4343 onClick = { ( ) => {
44- editor . forkYDocPlugin . fork ( ) ;
44+ editor . forkYDocPlugin ! . fork ( ) ;
4545 } }
4646 disabled = { isForked }
4747 >
4848 Pause syncing
4949 </ button >
5050 < button
5151 onClick = { ( ) => {
52- editor . forkYDocPlugin . merge ( { keepChanges : true } ) ;
52+ editor . forkYDocPlugin ! . merge ( { keepChanges : true } ) ;
5353 } }
5454 disabled = { ! isForked }
5555 >
5656 Play (accept changes)
5757 </ button >
5858 < button
5959 onClick = { ( ) => {
60- editor . forkYDocPlugin . merge ( { keepChanges : false } ) ;
60+ editor . forkYDocPlugin ! . merge ( { keepChanges : false } ) ;
6161 } }
6262 disabled = { ! isForked }
6363 >
You can’t perform that action at this time.
0 commit comments