Skip to content

Forking a model crashes #926

Description

@silberistgold

Great library. Looking into using this for our realtime form collaboration feature.

Doing a simple fork crashes using the latest Version:

import { Model } from "json-joy/esm/json-crdt";

const model = Model.withServerClock();

model.api.set({ foo: "bar" });

// this does not work
const forkedModel = model.fork();

Same behaviour when using toBinary() and fromBinary().

Any help would be greatly appreciated.

Environment:

json-joy 17.49.1
vite 6.3.5
pnpm 10.11.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions