Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-reactix
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
purescript-reactix
Commits
62c808db
Commit
62c808db
authored
Jul 14, 2019
by
James Laver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v0.4.2 - see changelog
parent
1d77097e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
35 deletions
+78
-35
README.md
README.md
+12
-0
Hooks.purs
src/Reactix/Hooks.purs
+66
-35
No files found.
README.md
View file @
62c808db
...
...
@@ -72,6 +72,7 @@ Not in any particular order
*
Test consumer (we only test useContext right now)
4.
Misc hooks
*
Test useEffect/useLayoutEffect are fired at the correct stage
*
Test useEffectOnce/useLayoutEffectOnce are fired once
*
Test useMemo/useCallback
*
Test useImperativeHandle
*
Test useDebugValue
...
...
@@ -88,6 +89,17 @@ Not in any particular order
<!-- * `R.React.provide` - provider a value through a `Provider` -->
<!-- * `R.React.consume` - consume a value through a `Consumer` -->
### 0.4.2
New:
*
`useEffectOnce`
(+ layout and prime variants) - effects which run
once at component mount and cleanup once at component dismount.
*
`unsafeUseEffect`
,
`unsafeUseLayoutEffect`
,
`unsafeUseMemo`
,
`unsafeUseCallback`
,
`unsafeUseImperativeHandle`
- unsafe hook
variants where you pass an array-like object of memo values without
any help from the type system to assert such likeness to an array.
### 0.4.1
New:
...
...
src/Reactix/Hooks.purs
View file @
62c808db
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment