import { h, render, mount, ref, nextTick } from 'lithent'; import { store } from '@/index'; const testChangeRef = ref void)>(null); const assignShardStore = store<{ text: string; count: number }>({ text: 'sharedText', count: 3, }); const Component = mount(renew => { const shardStore = assignShardStore(renew); const changeInput = (event: InputEvent) => { shardStore.text = (event.target as HTMLInputElement).value; }; testChangeRef.value = () => { shardStore.text = 'newSharedText'; }; return () => (