You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#68
`shouldUpdate` has similar props and I've found them confusing as nothing names them as "next" or "prev", so I changed both to receive a record which at least has the property names visible. What do you think, @akheron?
Copy file name to clipboardExpand all lines: src/React/Basic.purs
+4-4
Original file line number
Diff line number
Diff line change
@@ -58,10 +58,10 @@ import Type.Row (class Union)
58
58
-- | - Side effects requested are only invoked _after_ any corrosponding state update has completed its render cycle and the changes have been applied. This means it is safe to interact with the DOM in a side effect, for example.
59
59
-- | - `render`
60
60
-- | - Takes a current snapshot of the component (`Self`) and converts it to renderable `JSX`.
61
-
-- | - `shouldUpdate`
62
-
-- | - Can be useful for performance optimizations. Rarely necessary.
63
61
-- | - `didMount`
64
62
-- | - The React component's `componentDidMount` lifecycle. Useful for initiating an action on first mount, such as fetching data from a server.
63
+
-- | - `shouldUpdate`
64
+
-- | - Can be useful for performance optimizations. Rarely necessary.
65
65
-- | - `didUpdate`
66
66
-- | - The React component's `componentDidUpdate` lifecycle. Rarely necessary.
67
67
-- | - `willUnmount`
@@ -110,9 +110,9 @@ type ComponentSpec props state action =
0 commit comments