Skip to content

bug: Newest release does not disclose usage of React 18 features (useId hook) #1743

@tejashah88

Description

@tejashah88

Describe the bug

I tried upgrading to the newest release (v10.0.0) and I got the following bug shown below. I'm using React v17 and after a bit of research, I found that useId is a hook introduced in React 18. Since the React version upgrade wasn't explicit in the changelog, this was surprising to say the least.

To Reproduce

Steps to reproduce the behavior:

  1. npm install --save stream-chat-react@10.0.0
  2. npm start or npm run build
  3. See error above

Expected behavior

Either the changelog should reflect that React 18 is a minimum requirement or useId should be replaced in favor of an alternative solution while keeping React 17 compatibility.

Screenshots

image

Package version

  • stream-chat-react: 10.0.0
  • stream-chat-css: 3.0.0
  • stream-chat-js: 7.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus:confirmedDescribed issue has been reproduced by the repo maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions