Skip to main content

Overview

useFetchCommentByForeignId returns a function that fetches a comment using the foreign ID from your own system. Useful when you’ve stored your own identifier on a comment and need to retrieve it later.

Usage Example

Parameters

string
required
The foreign ID to look up.
string | string[]
Populate related data. Accepted values: "user", "entity", "space", "parent".

Returns

Comment
The fetched comment. See Comment data model.