I have the DataObject like this:
protected async initializingFirstTime() {
const sequence = SharedObjectSequence.create(this.runtime);
this.root.set("sequence", sequence.handle);
}
public async insertNode () {
const children = await this.root.get<IFluidHandle<SharedObjectSequence<IFluidHandle<SharedMap>>>>("sequence").get();
const map = SharedMap.create(this.runtime)
children.insert(0, [map.handle as IFluidHandle<SharedMap>])
}
I definition insertNode method and try to insert children node when user typed some content.
But after init this data object and call insertNode(), I got the error: initialMessages called twice
I just wanner add SharedMap into SharedObjectSequence. Is any wrong for this case?
I reappear this issue by draft-js example, here are commit code and insert-node-test branch