Skip to content
#

hooks

Here are 6,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

swr
PMudra
PMudra commented Apr 20, 2021

Bug report

Description / Observed Behavior

Passing an updated fetcher method to useSWR has no effect. The initial version of the fetcher will be used.

I am passing a fetcher function to useSWR that is updated by applying a new access token.

const [accessToken, setAccessToken] = useState("valid-0");
const fetcher = () => {
  console.log("fetch with token:", accessToken
beautiful-react-diagrams

Improve this page

Add a description, image, and links to the 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 hooks topic, visit your repo's landing page and select "manage topics."

Learn more