Skip to content
#

react-hooks

Here are 5,159 public repositories matching this topic...

formik
krichter722
krichter722 commented Apr 19, 2020

🚀 Feature request

Current Behavior

The type ErrorMessage doesn't have an id property.

Desired Behavior

It'd be nice id?: string would be added to the type ErrorMessage and set on the outermost component that serves as error message.

Suggested Solution

Add id={this.props.id} to the outer component in ErrorMessage.

Who does this impact? Who is this

beautiful-react-hooks
jacekk
jacekk commented Oct 3, 2020

Describe the bug
The following PR introduced some breaking change in typings: https://github.com/beautifulinteractions/beautiful-react-hooks/pull/156/files#diff-b52768974e6bc0faccb7d4b75b162c99R19

Argument of type '() => void' is not assignable to parameter of type 'any[]'.
  Type '() => void' is missing the following properties from type 'any[]': pop, push, concat, join, and 27 more
jaydenseric
jaydenseric commented Feb 19, 2021
  • react-hooks-testing-library version: v5.0.3

Reproduction:

In a blank project, run:

npm install react-test-renderer @testing-library/react-hooks --save-dev

In test.js:

const { renderHook } = require('@testing-library/react-hooks');

function useExample() {
  throw new Error('Message.');
}

renderHook(() => useExample());

Run:

node test

Improve this page

Add a description, image, and links to the react-hooks topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the react-hooks topic, visit your repo's landing page and select "manage topics."

Learn more