Daniel Compton
956f4dc1dc
Reformat code examples for using an entity
2019-12-28 09:43:50 +13:00
Juho Teperi
6615b535c4
Remove old comment
2019-12-17 23:46:15 +02:00
Juho Teperi
ae0c64fe9f
Release 0.9.0-rc4
2019-12-17 03:02:49 +02:00
Juho Teperi
8f9045311c
Extern fix for npm prod build
2019-12-17 02:58:38 +02:00
Juho Teperi
2c5bfb553f
Update cljs and shadow-cljs
2019-12-17 02:39:44 +02:00
Juho Teperi
5e4146ae4f
Merge pull request #468 from reagent-project/constructor-mount-order
...
Use component constructor to keep track of mount order
2019-12-17 02:34:45 +02:00
Juho Teperi
6cb6561ba6
Use component constructor to keep track of mount order
...
Previous change (35ff5d33dd
) started using ComponentDidMount to keep
track of component mount order. This affected the order in which this
was called, previously ComponentWillMount was called the first for
parent components and then for children. ComponentDidMount was called
first for children etc. To work around this, the mount order was
reversed when updating components after ratom updates.
Problem with this is, that when only some components are rerendered,
they get new numbers, but their parents don't:
(given components c, b, a)
**0.8.1**
c 1 > b 2 > a 3
a rerendered
c 1 > b 2 > a 4
b rerendered
c 1 > b 5 > a 6
**35ff5d33dd**
c 3 > b 2 > a 1
a rerendered
c 3 > b 2 > a 4 (BROKEN)
b rerendered
c 3 > b 6 > a 5 (BROKEN)
Best way to fix this is to revert back to old way, where parents get the
smaller number, this was re-rendering children doesn't change the order.
To implement this the mount-order can be stored in component
constructor, which seems to work similarly to ComponentWillMount.
> The constructor for a React component is called before it is mounted.
> UNSAFE_componentWillMount()... Generally, we recommend using the constructor() instead for initializing state.
2019-12-17 02:30:25 +02:00
Juho Teperi
07bfa901ac
Add static contextType test
2019-12-17 02:21:05 +02:00
Juho Teperi
4c5dd6fd7b
Merge pull request #467 from plexus/class-context-type
...
Add support for Class.contextType
2019-12-17 02:18:51 +02:00
Arne Brasseur
e6b1e9794c
Add support for Class.contextType
...
We already support the static contextTypes and childContextTypes from the legacy
context API. React has now added contextType to the new Context API to make it
easier to consume the context value.
https://reactjs.org/docs/context.html#classcontexttype
https://reactjs.org/blog/2018/10/23/react-v-16-6.html
2019-12-12 17:58:59 +01:00
Juho Teperi
665b7964da
Update README.md
2019-11-24 16:24:45 +02:00
Juho Teperi
afd9a739ce
Update README.md
2019-11-24 16:24:21 +02:00
Juho Teperi
e22025ef47
Update CHANGELOG.md
2019-11-19 22:01:20 +02:00
Juho Teperi
c4d9c1f5a2
Update CHANGELOG.md
2019-11-19 22:01:03 +02:00
Juho Teperi
d48f020147
Update changelog
2019-11-19 21:59:49 +02:00
Juho Teperi
e85e2bb056
Add shadow-cljs dev setup
2019-11-19 21:57:21 +02:00
Juho Teperi
8de886d8b1
Merge pull request #461 from reagent-project/infer-externs
...
Fix #460 : Add type hints for extern inference
2019-11-19 21:23:30 +02:00
Juho Teperi
13a5cba2a5
Update package lock
2019-10-25 10:28:52 +03:00
Juho Teperi
a9cace4e14
Tag all objects with infer warnings
2019-10-25 10:28:52 +03:00
Juho Teperi
d663f3b53e
Add shadow-cljs test configuration
2019-10-25 10:28:52 +03:00
Juho Teperi
7a974ecccd
Fix #460 : Add type hints for extern inference
2019-10-25 08:55:22 +03:00
Juho Teperi
7eb42190d6
Merge pull request #458 from iyedb/patch-1
...
Fix some sentences and change wording
2019-10-20 10:08:09 +03:00
Iyed Bennour
b9ce0ac92f
Fix some sentences and change wording
2019-10-19 17:39:28 +02:00
Juho Teperi
f16ee70a24
Update version number
2019-10-17 15:14:56 +03:00
Juho Teperi
88a94a44ec
Release 0.9.0-rc2
2019-10-17 15:13:53 +03:00
Juho Teperi
f4361ebe0a
Update changelog
2019-10-17 14:18:39 +03:00
Juho Teperi
7ddc3dad5a
Fix #454 , add missing gobj/set parameter
2019-10-17 14:18:15 +03:00
Juho Teperi
b994400194
Merge pull request #456 from watkinsm/creating-reagent-components-fix
...
Fix error in CreatingReagentComponents.md
2019-10-17 11:31:12 +03:00
Michael Watkins
4d37359e21
Fix error in CreatingReagentComponents.md
...
Without the [], the columns example caused compilation errors if actually used in a file.
2019-10-17 10:50:21 +03:00
Juho Teperi
e1075a410c
Update ReactFeatures.md
2019-10-09 11:06:54 +03:00
Juho Teperi
078976de26
Fix #452 , Fix missing key warning where message contains fn literal
2019-10-02 15:37:56 +03:00
Juho Teperi
88fa3cc4ab
Improve error boundary docs and fix tests
2019-10-02 15:37:21 +03:00
Juho Teperi
edb3d2d322
Document using getDerivedStateFromError with error boundaries
2019-10-02 12:59:00 +03:00
Juho Teperi
54834246f2
Clean unncessary type tag
2019-09-12 11:26:16 +03:00
Juho Teperi
b6a380f69e
Adv build material-ui example & infer externs
2019-09-12 11:24:09 +03:00
Juho Teperi
bb8bcc414e
Update material-ui example deps
2019-09-12 10:39:07 +03:00
Juho Teperi
bdc3fc063c
Release 0.9.0-rc1
2019-09-10 13:03:49 +03:00
Juho Teperi
470a101095
Update CHANGELOG.md
2019-09-09 15:29:16 +03:00
Juho Teperi
3b10c426c1
Merge pull request #446 from jahson/patch-1
...
Fix documentation links
2019-08-29 13:48:25 +03:00
Oleg
c828e22b5f
Fix documentation links
2019-08-29 10:13:39 +03:00
Juho Teperi
bd8603dce8
Merge pull request #443 from reagent-project/react-16-9
...
React 16.9
2019-08-19 10:04:52 +03:00
Juho Teperi
094a29b9df
Fix accessing js state in optimized build
2019-08-14 10:53:05 +03:00
Juho Teperi
555ae05947
Update changelog
2019-08-14 10:52:51 +03:00
Juho Teperi
d4f14900da
Improved support for new lifecycle methods & better docs
...
- separate getInitialState and constructor, they work differently
- getDerivedStateFromProps and Error
- getSnapshotBeforeUpdate
- Improved docstring for create-class
2019-08-14 10:38:43 +03:00
Juho Teperi
f91c97a70c
Update create-class docstring example
2019-08-14 10:38:43 +03:00
Juho Teperi
35ff5d33dd
Use DidMount for component mount order
...
WillMount lifecycle method is being deprecated. DidMount can also be
used to capture the mount order. WillMount is called first for top-most
component and last for the children. DidMount is the reverse, first for
children and last the top-most component.
2019-08-14 10:38:43 +03:00
Juho Teperi
2f9e91d697
Add support for UNSAFE_ lifecycle methods & use for impl and tests
2019-08-14 10:38:43 +03:00
Juho Teperi
2f4f9ac0eb
Merge pull request #437 from tkjone/patch-1
...
Enhance Docs w/ link to reagent component blog
2019-08-13 20:00:59 +02:00
Juho Teperi
5289f1306d
Merge pull request #441 from superstructor/feature/shadow-cljs
...
Support shadow-cljs
2019-08-13 19:49:48 +02:00
Juho Teperi
8d5540f8b1
Update README.md
...
Fixes #436
2019-08-13 09:37:03 +03:00