29 Commits

Author SHA1 Message Date
Tanyoung Kim
83fd04aa81 Update example function name in Async blog post (#1183) 2018-09-14 23:22:49 +01:00
Brian Vaughn
3e80980c18 Renamed params for gDSFP 2018-05-24 18:18:04 -07:00
Brian Vaughn
7351d11a89 Fixed invalid getSnapshotBeforeUpdate() example code (#799)
* Fixed invalid getSnapshotBeforeUpdate() example code

* Don't use class properties in stable docs
2018-04-13 14:41:27 +01:00
Brian Vaughn
ec718a33ee Updated react-lifecycles-compat example to show 2.0 named export 2018-04-03 10:33:37 -07:00
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`.
2018-03-30 11:44:46 -04:00
Brian Vaughn
6afbc7b56e Added side effects props change example 2018-03-28 10:27:36 -07:00
Brian Vaughn
9113b4c829 Fixed example props/prevProps 2018-03-27 19:24:52 -07:00
Dan Abramov
77dae36663 Use examples without types in the post (#719) 2018-03-28 00:40:13 +01:00
Brian Vaughn
46103921fe Changes in response to Sophie's feedback 2018-03-27 14:06:27 -07:00
Brian Vaughn
7cf5b58187 Wordsmithing 2018-03-27 10:30:38 -07:00
Brian Vaughn
e143823d7a Added create-subscription example 2018-03-24 16:26:04 -07:00
Brian Vaughn
b3bf0bd520 Added getSnapshotBeforeUpdate recipe 2018-03-23 11:23:07 -07:00
Brian Vaughn
55650fc12c Added explicit null value in state initializer 2018-03-15 08:48:01 -07:00
Brian Vaughn
3c75def7e7 Deleted StrictMode and examples/images 2018-03-07 11:42:10 -08:00
Brian Vaughn
2312173e66 Moved updating-subscription example into an external Gist with a note 2018-02-28 09:10:34 -08:00
Brian Vaughn
442591cec9 Added example of updating subscription from props
The nuance of this particular example came up while updating react-relay
2018-02-22 13:19:39 -08:00
Brian Vaughn
98d5a092af Added gDSFP to example 2018-02-20 17:09:43 -08:00
Brian Vaughn
858c1a7511 Fixed small error in example 2018-02-20 17:05:29 -08:00
Brian Vaughn
8de7dc42ba Updated recipes to show updating/removing subscriptions 2018-02-16 14:47:16 -08:00
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.
2018-02-14 14:34:14 -08:00
Brian Vaughn
540033808f Updated data-fetching example to show cWRP too 2018-02-13 13:48:27 -08:00
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).
2018-02-13 10:49:40 -08:00
Brian Vaughn
c1e67bec90 Wordsmithing in response to PR feedback 2018-02-12 09:06:10 -08:00
Brian Vaughn
36963886eb Increased Prettier line-width for examples 2018-02-07 09:21:38 -08:00
Brian Vaughn
06d5be4571 Prettier 2018-02-07 09:21:26 -08:00
Brian Vaughn
f005c04206 Wordsmithing 2018-02-07 09:21:26 -08:00
Brian Vaughn
1314117e42 Wording improvements in response to Dan's feedback 2018-02-07 09:21:26 -08:00
Brian Vaughn
e298b47057 Wordsmithing 2018-02-07 09:21:26 -08:00
Brian Vaughn
544c0bc5c9 Migrated async update from Quip to Markdown 2018-02-07 09:21:26 -08:00