Skip to content
Merged
Changes from all commits
Commits
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
Change getDerivedStateFromProps description and parameter names
  • Loading branch information
MartinCerny-awin authored Jan 7, 2019
commit 82154192b828208ed67933afa81d57296ee00a47
4 changes: 2 additions & 2 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,8 @@
},
"getDerivedStateFromProps": {
"prefix": "gdsfp",
"body": ["static getDerivedStateFromProps(nextProps, prevState) {", " ${1}", "}"],
"description": "Invoked after a component is instantiated as well as when it receives new props."
"body": ["static getDerivedStateFromProps(props, state) {", " ${1}", "}"],
"description": "Invoked right before calling the render method, both on the initial mount and on subsequent updates."
},
"getSnapshotBeforeUpdate": {
"prefix": "gsbu",
Expand Down