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
optimisticId
Generate a temporary message ID before the server responds.
import
{
optimisticId
}
from
'
@superinterface/react/utils
'
const
id
=
optimisticId
(
)
Returns
Type
Description
string
Unique optimistic ID key
Status
Changelog
Terms of service
Privacy policy