@voltro/client 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -768,6 +768,30 @@ export declare const getMutationNotifier: () => MutationNotifier | undefined;
768
768
  /** Read the current feed. Newest-first; up to MAX_MUTATIONS entries. */
769
769
  export declare const getMutations: () => ReadonlyArray<MutationEvent>;
770
770
 
771
+ /**
772
+ * Is this the loading baseline rather than a resolved api?
773
+ *
774
+ * The stub is deliberately *usable* — that is what lets a provider-less render
775
+ * proceed instead of crashing — so nothing about its shape says "not ready".
776
+ * Reads go through `LoadingSubscriptionCache`, whose `subscribe` is a
777
+ * non-fetching no-op, and that covers every hook that reads through the cache.
778
+ *
779
+ * A hook that instead forks its own fiber on `handle.runtime` has no such
780
+ * backstop, and gets a worse failure than a crash: `useEvent` retries a dropped
781
+ * subscription forever by design, so forking against the stub's client proxy —
782
+ * which throws on any call — is an unbounded retry loop, not a one-off error.
783
+ * Such a hook must gate on this instead.
784
+ *
785
+ * It asks about the CAPABILITY, not about object identity, and that is
786
+ * load-bearing rather than stylistic. `handle === ssrStubHandle` is the obvious
787
+ * spelling and it is wrong here: a host that loads a bundled copy of this
788
+ * package alongside this one — `@voltro/web`'s dist does exactly that — has its
789
+ * own `ssrStubHandle`, so the comparison answers "resolved" for a stub and the
790
+ * caller forks into the crash anyway. Asking whether the runtime can fork is
791
+ * true of every real runtime and false of every stub, in any number of copies.
792
+ */
793
+ export declare const isUnresolvedApi: (handle: ApiHandle) => boolean;
794
+
771
795
  declare type Listener = () => void;
772
796
 
773
797
  /**