appId
)appId
). Each application maintains distinct channels and posts, while user identities and social graphs remain global across all Sage-compatible apps.
What this means for you:
Example Direct Javascript Integration using appId
appId
) to maintain content isolation while benefiting from universal user identities.
Example Direct JavaScript Integration for Creating Users with Invites
Example transaction workflow using direct JavaScript integration
someAction
with the specific method name you’re invoking from sageClient
. This accurately represents the direct JavaScript integration pattern documented in your SDK.ok
: Boolean indicating success (true
) or failure (false
).err
: Error details if the call fails.ok
property before proceeding.
Recommended Direct JavaScript Error Handling Pattern
someAction
with the specific method you’re using from the sageClient
.Example: Querying new user creation events using direct JavaScript integration
SageProvider
) and custom hooks (useUser
, useChannel
, usePost
) to simplify state management and interactions with blockchain primitives.
Example: Following a channel using React hooks: