Superinterface
Product
Pricing
Examples
Docs
Blog
GitHub
Discord
Book a demo
Sign in
Menu
Getting started
AI Provider Setup
FAQ
Assistants
Create assistant
Functions
Interfaces
Create interface
Interaction Modes
AI Builder
Publish interface
Components
Annotations
Concepts
Why Superinterface
How it works
Tasks
Overview
API reference
React
Installation
Components
Hooks
Contexts
Utils
optimisticId
isOptimistic
serializeMessage
enqueueJson
Thread ID storage
filesFieldAccept
Server
JavaScript
REST
isOptimistic
Check whether a given ID was created with
optimisticId
.
import
{
isOptimistic
,
optimisticId
}
from
'
@superinterface/react/utils
'
const
id
=
optimisticId
(
)
console
.
log
(
isOptimistic
(
{
id
}
)
)
// true
Arguments
Parameter
Type
Description
id
string
ID to be verified
Returns
Type
Description
boolean
true
if the ID is optimistic
Status
Changelog
Terms of service
Privacy policy