From a69464f62e5f917bb9d344bec9debbb0b1f75e04 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Wed, 22 Jul 2026 18:30:23 +0530 Subject: [PATCH 1/2] docs(liveobjects): update JS sections for PathObject.instance() wrapping primitives (RTPO8f) --- src/pages/docs/liveobjects/batch.mdx | 2 +- src/pages/docs/liveobjects/concepts/instance.mdx | 8 +++++--- src/pages/docs/liveobjects/concepts/objects.mdx | 2 +- src/pages/docs/liveobjects/concepts/path-object.mdx | 12 +++++++++--- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/pages/docs/liveobjects/batch.mdx b/src/pages/docs/liveobjects/batch.mdx index 4d173ce388..4de143c36b 100644 --- a/src/pages/docs/liveobjects/batch.mdx +++ b/src/pages/docs/liveobjects/batch.mdx @@ -80,7 +80,7 @@ await rootObject.get('visits').batch((ctx) => { When you call `batch()` on a `PathObject`, the path is resolved to its underlying instance, and the batch context operates on that resolved instance. -You can only call `batch()` on an `PathObject` whose path resolves to a `LiveMap` or `LiveCounter` instance: +You can only call `batch()` on a `PathObject` whose path resolves to a `LiveMap` or `LiveCounter` instance: ```javascript diff --git a/src/pages/docs/liveobjects/concepts/instance.mdx b/src/pages/docs/liveobjects/concepts/instance.mdx index 68122576bc..15727973b7 100644 --- a/src/pages/docs/liveobjects/concepts/instance.mdx +++ b/src/pages/docs/liveobjects/concepts/instance.mdx @@ -27,6 +27,8 @@ meta_description: "Learn about Instance, a reference to a specific LiveObject in An `Instance` represents a specific object instance within the channel object. When you call methods on an `Instance`, they operate on that specific instance regardless of where it exists in the structure or whether it has been moved. +An `Instance` can also wrap a primitive value, for example when obtained from a path that resolves to a primitive. Primitive-backed instances are read-only and have no object ID. +