-
-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): Fixed weird dev error with spreading props and key
I ended up finding this error since trying to load the TextFields page crashes in dev mode because an error was thrown about `<textarea>` should not have multiple `children` and you should use `value` or `defaultValue` instead. It turns out that some version of `next` makes it so that if you use the spread operator **before** a `key` on a JSX element, the element will be forced to have children of: ```ts [undefined, undefined, false, undefined] ``` As I started writing this commit message, looks like it has been logged in the nextjs repo and is related to SWC. Should hopefully be fixed soon.
- Loading branch information
Showing
4 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 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 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 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
7cd7b8c
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.
Successfully deployed to the following URLs: