-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Better Function Component in docs + Macro-based Hooks #2478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a85e3dd
Fix const function component.
futursolo 6084e86
Show Properties on the function definition.
futursolo 6d41f3d
Filter certain doc attributes to be applied to type alias. More preci…
futursolo e20856d
Implement macro-based hook.
futursolo a5a15a3
Add fail case.
futursolo 4c06767
Function Component no longer a type alias.
futursolo 5210030
Clippy!
futursolo 0290a20
Force 'static on generics.
futursolo f490091
Fix clippy!
futursolo 3f81d21
Fix clippy and trybuild.
futursolo a421a0d
Fix clippy and trybuild.
futursolo 294a8fb
Fix clippy.
futursolo 421f74e
BaseComponent was not sealed properly.
futursolo 3e18964
Adjust prelude.
futursolo 9323544
Public API should use IntoComponent for better ergonomics.
futursolo fe7aa48
Fix race condition.
futursolo f7b5b23
Fix trybuild.
futursolo db3324d
Merge commit '78d4204a9a52a826bd2be4e7383d29e04233fb5b' into fn-comp-…
futursolo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We should pass
denyandwarn. if we're passing alongallow, or does it not matter?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.
We probably shouldn't. This makes users to be able to apply lints on generated code.
Lints are usually suppressed on generated code.