@slop-ai/solid
bun add @slop-ai/client @slop-ai/soliduseSlop(client, pathOrGetter, descriptorFactory)
Section titled “useSlop(client, pathOrGetter, descriptorFactory)”useSlop() accepts a static or dynamic path plus a descriptor factory tracked by Solid’s reactive system.
useSlop(slop, "notes", () => ({ type: "collection", props: { count: notes().length }, items: notes().map((note) => ({ id: note.id, props: { title: note.title, pinned: note.pinned }, })),}));When signals used inside the descriptor change, the node is re-registered automatically.