Commit e5a139f5 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[tree] add TODO about cyclic define for components

parent d7ee3853
...@@ -181,16 +181,13 @@ type ToHtmlProps = ( ...@@ -181,16 +181,13 @@ type ToHtmlProps = (
toHtmlFirstLevel :: R2.Component ToHtmlProps toHtmlFirstLevel :: R2.Component ToHtmlProps
toHtmlFirstLevel = R.createElement toHtmlFirstLevelCpt toHtmlFirstLevel = R.createElement toHtmlFirstLevelCpt
toHtmlFirstLevelCpt :: R.Component ToHtmlProps
toHtmlFirstLevelCpt = R.hooksComponentWithModule thisModule "toHtmlFirstLevel" cpt
where where
cpt p _ = do -- TODO This shouldn't be here: make it a top-level function but be careful
pure $ H.div {} [] -- about cyclic defines
-- https://discourse.purescript.org/t/strange-compiler-error-with-an-undefined-reference/2060/3
toHtmlFirstLevelCpt :: R.Component ToHtmlProps
toHtmlFirstLevelCpt = R.hooksComponentWithModule thisModule "toHtmlFirstLevel" cpt
toHtmlFirstLevelCpt' :: R.Component ToHtmlProps
toHtmlFirstLevelCpt' = R.hooksComponentWithModule thisModule "toHtmlFirstLevel" cpt
where
cpt p@{ appReload cpt p@{ appReload
, asyncTasks , asyncTasks
, currentRoute , currentRoute
...@@ -276,6 +273,9 @@ type ChildNodeFirstLevelProps = ( ...@@ -276,6 +273,9 @@ type ChildNodeFirstLevelProps = (
childNodeFirstLevel :: R2.Component ChildNodeFirstLevelProps childNodeFirstLevel :: R2.Component ChildNodeFirstLevelProps
childNodeFirstLevel = R.createElement childNodeFirstLevelCpt childNodeFirstLevel = R.createElement childNodeFirstLevelCpt
where where
-- TODO This shouldn't be here: make it a top-level function but be careful
-- about cyclic defines
-- https://discourse.purescript.org/t/strange-compiler-error-with-an-undefined-reference/2060/3
childNodeFirstLevelCpt :: R.Component ChildNodeFirstLevelProps childNodeFirstLevelCpt :: R.Component ChildNodeFirstLevelProps
childNodeFirstLevelCpt = R.hooksComponentWithModule thisModule "childNodeFirstLevel" cpt childNodeFirstLevelCpt = R.hooksComponentWithModule thisModule "childNodeFirstLevel" cpt
...@@ -321,6 +321,9 @@ type ChildNodeFirstLevelPaintProps = ( ...@@ -321,6 +321,9 @@ type ChildNodeFirstLevelPaintProps = (
childNodeFirstLevelPaint :: R2.Component ChildNodeFirstLevelPaintProps childNodeFirstLevelPaint :: R2.Component ChildNodeFirstLevelPaintProps
childNodeFirstLevelPaint = R.createElement childNodeFirstLevelPaintCpt childNodeFirstLevelPaint = R.createElement childNodeFirstLevelPaintCpt
where where
-- TODO This shouldn't be here: make it a top-level function but be careful
-- about cyclic defines
-- https://discourse.purescript.org/t/strange-compiler-error-with-an-undefined-reference/2060/3
childNodeFirstLevelPaintCpt :: R.Component ChildNodeFirstLevelPaintProps childNodeFirstLevelPaintCpt :: R.Component ChildNodeFirstLevelPaintProps
childNodeFirstLevelPaintCpt = R.hooksComponentWithModule thisModule "childNodeFirstLevelPaint" cpt childNodeFirstLevelPaintCpt = R.hooksComponentWithModule thisModule "childNodeFirstLevelPaint" cpt
-- TODO folderOpen is unused -- TODO folderOpen is unused
......
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