Sean Moriarity
47e444a4e9
Increase clarity of Context documentation ( #3527 )
4 years ago
Sam Bigelow
21fe4c829b
Fix a grammatical error in Context.md ( #3352 )
4 years ago
Chris Wilson
ec07e80be0
Remove prev/next links from the Advanced Guide ( #3269 )
4 years ago
Eduard Poracký
d16f1ee795
Add next and previous links to Advanced Guides ( #540 )
Co-authored-by: Eduard Poracký <eporacky@trionyx.sk>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
4 years ago
jarstelfox
f90d199a61
Memo: Document behavior with useContext ( #2332 )
* Memo: Document behavior with useContext
It is not obvious that useContext and Memo work well together. Namely, if a child component listens to a context and updates out from under them memo'd function, does the memo'd component have the right state if re-rendered?
yes, actually. but this is undocumented. Now it's not!
* fix typo tigger -> trigger
* Add more detail to all relevant pages
Co-authored-by: Alex Krolick <alexkrolick@users.noreply.github.com>
Co-authored-by: Sophie Alpert <git@sophiebits.com>
5 years ago
Michael Lustig
9705d2796b
Fix error ( #2370 )
5 years ago
Mojtaba Izadmehr
5cdb85b5e5
Add doc for context displayaName ( #2367 )
* Add doc for context displayaName
* Add highlight for js doc
* Fix context display name link
* Fix context displayName comment
5 years ago
Gasim Gasimzada
8e805d7995
Add missing `avatarSize` in "Before you use context" to text and code ( #1737 )
6 years ago
Nat Alison
25df15b83e
reapply, correctly generating links
6 years ago
Nat Alison
dc1e5366e3
revert id adding
6 years ago
Nat Alison
3e49e971d0
add everything else again
6 years ago
rthurgood
13959877d3
Update context.md ( #1420 )
6 years ago
Sebastian Markbåge
896214b7d2
Document class contextType as the primary consuming mechanism ( #1283 )
* Document class contextType as the primary consuming mechanism
* Update context.md
6 years ago
Sophie Alpert
21511bde38
Tweaks to "Before You Use Context" ( #1091 )
![screenshot of new section](https://user-images.githubusercontent.com/6820/43227544-d9d55496-9013-11e8-8fe3-b16ed96d0070.png )
7 years ago
Dan Abramov
023fb45343
Tweaks
7 years ago
Dan Abramov
7016c4a21d
Tweak
7 years ago
Dan Abramov
5028f0874d
Add "Before You Use Context" ( #1085 )
7 years ago
Dan Burzo
1d5217a293
Clarify change propagation in Context API ( #896 )
7 years ago
Alex Krolick
c95de8b59a
Clarify defaultValue usage ( #868 )
Fixes #867
7 years ago
Michael Li
ed255e604b
Fix grammar
7 years ago
tjallingt
6521a654cb
Added updating nested context default value example ( #780 )
* added context default value example
* Implement suggested change
* noop function as default value to createContext
7 years ago
tjallingt
e4941f6440
Added example for updating nested context consumer ( #776 )
* Added an example showing how to update the context from inside a (deeply) nested component
* Wrap comments
* Wrap comments
* Tweak wording
* Prettier
* Prettier
* Typo: "funtion" -> "function"
7 years ago
Dan Abramov
1466232fbf
Tweak context
7 years ago
Alex Krolick
6c22a4345b
Clarify when Consumers get the default value ( #770 )
* Clarify when Consumers get the default value
* Change wording
7 years ago
Asher Michael
c1c9714041
Update context.md ( #751 )
Corrected a grammar error in one of the notes section.
7 years ago
Alex Krolick
e8646074ee
Absolute link
7 years ago
Brian Vaughn
3a36a402a5
Revert "Added inline child function caveat to Context docs"
This reverts commit 691cd4577c
.
7 years ago
Brian Vaughn
691cd4577c
Added inline child function caveat to Context docs
7 years ago
Brian Vaughn
bd06bbc1a7
Added context HOC example to reference
7 years ago
Alex Krolick
349446d8a7
Add caveats section
7 years ago
Alex Krolick
c9d50e3aba
Remove lib link
7 years ago
Alex Krolick
9e4442a5ad
typo
7 years ago
Alex Krolick
fe84e096dc
Explain why you need forwardRef
7 years ago
Alex Krolick
509b126510
Explain context in lifecycle a bit more
7 years ago
Alex Krolick
e6898245d9
Add notes about composing multiple contexts
7 years ago
Alex Krolick
d58c892169
+ "same algo"
7 years ago
Alex Krolick
1ead0605c2
17 -> future version
7 years ago
Brian Vaughn
b25276a80e
Updated forward-refs example to use class component
7 years ago
Brian Vaughn
f5d51393f5
Formatted a Note
7 years ago
Alex Krolick
f588bd61e1
Update "legacy" wording
7 years ago
Alex Krolick
4e1282edac
Add to "when to use context"
7 years ago
Alex Krolick
6eb29a18f5
Combine basic examples
7 years ago
Alex Krolick
da091e6723
Add note about how changes are determined
7 years ago
Alex Krolick
7b5764fed5
Add ref forwarding, lifecycle examples
7 years ago
Alex Krolick
fec6d6c141
Add mutliple contexts example
7 years ago
Alex Krolick
53d604fd3a
~deprecated~ legacy
7 years ago
Alex Krolick
e9ae68f55b
remove confusing {}
7 years ago
Alex Krolick
6aa199516d
Add solution to motivation problem
7 years ago
Alex Krolick
291b2fdeb8
Wording tweaks
7 years ago
Alex Krolick
808e5bddaf
Rephrase and reorganize
- Move Motivation to top @bvaughn
- Copy in some Motivation text from the RFC for the intro para
- Update examples
- Remove state from simple example
- Remove "random color" example;
just toggle a theme variable instead
- Update highlights
7 years ago