Skip to content

docs: document useSchematicCreditBalance for React, Vue, and Angular#362

Merged
ryanechternacht merged 1 commit into
mainfrom
ryan/sch-6590-use-schematic-credit-balance
Jun 23, 2026
Merged

docs: document useSchematicCreditBalance for React, Vue, and Angular#362
ryanechternacht merged 1 commit into
mainfrom
ryan/sch-6590-use-schematic-credit-balance

Conversation

@ryanechternacht

Copy link
Copy Markdown
Member

Documents the new useSchematicCreditBalance hook/composable (and the Angular creditBalance$ observable) added in schematic-js #1389 (React) and #1397 (Vue/Angular).

Changes

Adds a Credit balances section to each SDK page, placed right after the existing plan/entitlement sections and matching the surrounding style:

  • React (react.mdx) — useSchematicCreditBalance("credit-id") returning { balance, isLoading }.
  • Vue (vue.mdx) — the useSchematicCreditBalance composable returning reactive ComputedRef values.
  • Angular (angular.mdx) — the creditBalance$(creditId, type?) observable, plus a row in the SchematicService API reference table.

Each section covers:

  • The settled (spendable) default, the number to show end users.
  • The remaining / reserved escape hatch for advanced lease-aware accounting.
  • The returned balance / isLoading shape.
  • Where to find a feature's creditId (on the entitlement).
  • The 1.5.0 minimum version.

Closes SCH-6590 (docs portion).

🤖 Generated with Claude Code

Add a "Credit balances" section to the React, Vue, and Angular SDK pages
covering the new useSchematicCreditBalance hook/composable and the Angular
creditBalance$ observable. Documents the settled default, the
remaining/reserved opts.type escape hatch, the returned balance/isLoading
shape, and where to find a feature's creditId. Mirrors the SDK READMEs from
schematic-js PRs #1389 (React) and #1397 (Vue/Angular).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

@ryanechternacht ryanechternacht merged commit 60ad054 into main Jun 23, 2026
2 checks passed
@ryanechternacht ryanechternacht deleted the ryan/sch-6590-use-schematic-credit-balance branch June 23, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant