Commit ff028ee4 authored by James Laver's avatar James Laver

[DEBUG] Attempt to memo the component, which does not fix the problem

parent d6b92438
...@@ -306,11 +306,11 @@ renderPage (_ /\ setTableParams) p@{session} res = R.createElement el p [] ...@@ -306,11 +306,11 @@ renderPage (_ /\ setTableParams) p@{session} res = R.createElement el p []
pageLayout :: Record PageLayoutProps -> R.Element pageLayout :: Record PageLayoutProps -> R.Element
pageLayout props = R.createElement pageLayoutCpt props [] pageLayout props = R.createElement pageLayoutCpt props []
pageLayoutCpt :: R.Component PageLayoutProps pageLayoutCpt :: R.Memo PageLayoutProps
pageLayoutCpt = R.hooksComponent "G.C.DocsTable.pageLayout" cpt where pageLayoutCpt = R.memo' $ R.hooksComponent "G.C.DocsTable.pageLayout" cpt where
cpt props@{session, nodeId, listId, corpusId, tabType, query, params} _ = do pure $ R.fragment [] cpt props@{session, nodeId, listId, corpusId, tabType, query, params} _ = do
-- useLoader {nodeId, listId, corpusId, tabType, query, params: fst params} (loadPage session) $ useLoader {nodeId, listId, corpusId, tabType, query, params: fst params} (loadPage session) $
-- \loaded -> renderPage params props loaded \loaded -> renderPage params props loaded
--------------------------------------------------------- ---------------------------------------------------------
sampleData' :: DocumentsView sampleData' :: DocumentsView
......
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