Skip to content

[BUG] clear() does not exist on type InngestSubscription #1147

@Thinkscape

Description

@Thinkscape

Describe the bug

clear() method not implemented
See: https://www.inngest.com/docs/features/realtime/react-hooks

clear: () => void - A function to clear all accumulated message data from the internal state. This includes data, freshData, and latestData arrays. Does not affect the connection or error state.

To Reproduce

const { clear } = useInngestSubscription();

System info (please complete the following information):

  • npm package Version: 0.4.4
  • Framework: next.js
  • Platform: vercel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions