Commit b4b12b6d authored by James Laver's avatar James Laver

[DEBUG] attempt to memo the new G.C.DocsTable.page. Did not work

parent 6890f3cb
...@@ -272,8 +272,8 @@ type PageProps = ...@@ -272,8 +272,8 @@ type PageProps =
page :: R.State T.Params -> Record PageLayoutProps -> Array DocumentsView -> R.Element page :: R.State T.Params -> Record PageLayoutProps -> Array DocumentsView -> R.Element
page params layout documents = R.createElement pageCpt {params, layout, documents} [] page params layout documents = R.createElement pageCpt {params, layout, documents} []
pageCpt :: R.Component PageProps pageCpt :: R.Memo PageProps
pageCpt = R.hooksComponent "G.C.DocsTable.pageCpt" cpt where pageCpt = R.memo' $ R.hooksComponent "G.C.DocsTable.pageCpt" cpt where
cpt { layout: {session, nodeId, corpusId, listId, totalRecords} cpt { layout: {session, nodeId, corpusId, listId, totalRecords}
, documents, params: (_ /\ setParams) } _children = do , documents, params: (_ /\ setParams) } _children = do
localCategories <- R.useState' (mempty :: LocalCategories) localCategories <- R.useState' (mempty :: LocalCategories)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment