Skip to documentation
Docs navigation
Docs/restoreTopic()
MemoGrafter

restoreTopic()

Use restoreTopic with an application-managed session scope.

What it does

Use restoreTopic with an application-managed session scope.

Restoring makes a previously suppressed topic eligible for retrieval again; it does not revive memories that were independently forgotten.

Signature

TypeScript
restoreTopic(topicId: string): Promise<boolean>

Parameters

topicId (string) — The topic to change.

Result

true when the requested state changed; false when the target was already in that state or was not found.

Example

example.ts
const result = await memo.restoreTopic(/* identifiers and options */);