-
Notifications
You must be signed in to change notification settings - Fork 109
Conversation
README.md
Outdated
resolve: image => image && image.message, | ||
}); | ||
|
||
return <img alt="Here's a good boye!" src={imageUrl} />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will show broken image for a moment, not sure if it matters for the exampls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So would you suggest
return <img alt="Here's a good boye!" src={imageUrl} />; | |
return imageUrl && <img alt="Here's a good boye!" src={imageUrl} />; |
?
README.md
Outdated
{loading ? ( | ||
"Deleting..." | ||
) : ( | ||
<a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use button instead of onClick={e => { e.preventDefault();
?
README.md
Outdated
``` | ||
|
||
`Mutate` is strongly typed, and provides intelligent autocompletion out of the box, complete with available verbs and other self-documentation. | ||
`useMutate` is strongly typed, and provides intelligent autocompletion out of the box, complete with available verbs et al. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`useMutate` is strongly typed, and provides intelligent autocompletion out of the box, complete with available verbs et al. | |
`useMutate` is strongly typed, and provides intelligent autocompletion out of the box, complete with available verbs etc. |
My guess et al.
is less know than etc.
or and others
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`useMutate` is strongly typed, and provides intelligent autocompletion out of the box, complete with available verbs et al. | |
`useMutate` is strongly typed, and provides intelligent autocompletion out of the box, complete with available verbs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just drop it.
README.md
Outdated
|
||
- an `interval` prop that will poll at a specified interval (defaults to polling 1 second), and | ||
- an `until` prop that accepts a condition expressed as a function that returns a boolean value. When this condition is met, polling will stop. | ||
- the signature of this function is `(data: T, response: Response) => boolean`. As a developer, you have access to the returned data, along with the response object in case you'd like to stop polling if `response.ok === false`, for example. | ||
- the signature of this function is `(data: T, response: ResponseInit) => boolean`. As a developer, you have access to the returned data, along with the response object in case you'd like to stop polling if `response.ok === false`, for example. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not part of the list. Make it a paragraph
README.md
Outdated
|
||
#### [Full `Poll` Component API](src/Poll.tsx#L53-L101) | ||
|
||
### Code Generation | ||
|
||
Restful React is able to generate _type-safe_ React components from any valid OpenAPI v3 or Swagger v2 specification, either in `yaml` or `json` formats. | ||
`restful-react` is able to generate _type-safe_ React components from any valid OpenAPI v3 or Swagger v2 specification, either in `yaml` or `json` formats. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`restful-react` is able to generate _type-safe_ React components from any valid OpenAPI v3 or Swagger v2 specification, either in `yaml` or `json` formats. | |
`restful-react` is able to generate React components with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in `yaml` or `json` formats. |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small comments, otherwise looks nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the demo link is broken :/
|
||
[![Edit Restful React demos](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/30n66z45mq) | ||
[![Edit restful-react demos](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/restful-react-demos-vjets) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
|
||
Consider, | ||
|
||
[![Edit Restful React demos](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/30n66z45mq) | ||
[![Edit restful-react demos](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/restful-react-demos-vjets) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same demo link as the the one above. is it intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
Why
We have amazing things but they're undocumented. This aims to fix #146.