Tanyoung Kim
83fd04aa81
Update example function name in Async blog post ( #1183 )
6 years ago
Brian Vaughn
3e80980c18
Renamed params for gDSFP
7 years ago
Brian Vaughn
7351d11a89
Fixed invalid getSnapshotBeforeUpdate() example code ( #799 )
* Fixed invalid getSnapshotBeforeUpdate() example code
* Don't use class properties in stable docs
7 years ago
Brian Vaughn
ec718a33ee
Updated react-lifecycles-compat example to show 2.0 named export
7 years ago
Nathan Quarles
51a864d858
Fix cDU to correctly make async request
When a new `id` prop is passed in, `getDerivedStateFromProps` sets `this.state.externalData` to `null`. If I understand the new API correctly the return value of gDSFP() either becomes the new state or is merged into the new state? If so, then `componentDidUpdate` should examine the new state (`this.state.externalData`), not `prevState.externalData`.
7 years ago
Brian Vaughn
6afbc7b56e
Added side effects props change example
7 years ago
Brian Vaughn
9113b4c829
Fixed example props/prevProps
7 years ago
Dan Abramov
77dae36663
Use examples without types in the post ( #719 )
7 years ago
Brian Vaughn
46103921fe
Changes in response to Sophie's feedback
7 years ago
Brian Vaughn
7cf5b58187
Wordsmithing
7 years ago
Brian Vaughn
e143823d7a
Added create-subscription example
7 years ago
Brian Vaughn
b3bf0bd520
Added getSnapshotBeforeUpdate recipe
7 years ago
Brian Vaughn
55650fc12c
Added explicit null value in state initializer
7 years ago
Brian Vaughn
3c75def7e7
Deleted StrictMode and examples/images
7 years ago
Brian Vaughn
2312173e66
Moved updating-subscription example into an external Gist with a note
7 years ago
Brian Vaughn
442591cec9
Added example of updating subscription from props
The nuance of this particular example came up while updating react-relay
7 years ago
Brian Vaughn
98d5a092af
Added gDSFP to example
7 years ago
Brian Vaughn
858c1a7511
Fixed small error in example
7 years ago
Brian Vaughn
8de7dc42ba
Updated recipes to show updating/removing subscriptions
7 years ago
Brian Vaughn
813be17f1e
Updated docs/recipes in response to a new GH question
This question showed there was a use-case that I wasn't covering fully enough before, so I've added a new section.
7 years ago
Brian Vaughn
540033808f
Updated data-fetching example to show cWRP too
7 years ago
Brian Vaughn
f632f220c6
Wording changes for update-on-async and strict-mode
Incorporates most of Sophie's feedback.
Changes update-on-async references to 16.3 to be future tense (since this blog post will be released before 16.3). Changes strict-mode references to be past-tense (since this will be a docs page instead of a blog post).
7 years ago
Brian Vaughn
c1e67bec90
Wordsmithing in response to PR feedback
7 years ago
Brian Vaughn
36963886eb
Increased Prettier line-width for examples
7 years ago
Brian Vaughn
06d5be4571
Prettier
7 years ago
Brian Vaughn
f005c04206
Wordsmithing
7 years ago
Brian Vaughn
1314117e42
Wording improvements in response to Dan's feedback
7 years ago
Brian Vaughn
e298b47057
Wordsmithing
7 years ago
Brian Vaughn
544c0bc5c9
Migrated async update from Quip to Markdown
7 years ago