Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
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
Grégoire Locqueville
purescript-gargantext
Commits
97d89bae
Commit
97d89bae
authored
Oct 10, 2019
by
James Laver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEBUG] Comment out suspicious-looking `useEffect1`, fixing the endless cycle of rerenders
parent
b4b12b6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Table.purs
src/Gargantext/Components/Table.purs
+1
-1
No files found.
src/Gargantext/Components/Table.purs
View file @
97d89bae
...
@@ -131,7 +131,7 @@ tableCpt = R.hooksComponent "Table" cpt
...
@@ -131,7 +131,7 @@ tableCpt = R.hooksComponent "Table" cpt
let state = {pageSize, orderBy, page}
let state = {pageSize, orderBy, page}
let ps = pageSizes2Int pageSize
let ps = pageSizes2Int pageSize
let totalPages = (totalRecords / ps) + min 1 (totalRecords `mod` ps)
let totalPages = (totalRecords / ps) + min 1 (totalRecords `mod` ps)
R.useEffect1' state $ setParams (stateParams state)
--
R.useEffect1' state $ setParams (stateParams state)
pure $ container
pure $ container
{ pageSizeControl: sizeDD pageSize setPageSize
{ pageSizeControl: sizeDD pageSize setPageSize
, pageSizeDescription: textDescription page pageSize totalRecords
, pageSizeDescription: textDescription page pageSize totalRecords
...
...
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