-
Notifications
You must be signed in to change notification settings - Fork 65
Force update #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force update #103
Conversation
src/React.purs
Outdated
@@ -335,6 +340,25 @@ createClassStateless' k = | |||
createClassStateless \props -> | |||
k props (childrenToArray (unsafeCoerce props).children) | |||
|
|||
foreign import forceUpdateImpl :: forall eff props state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this one can be implemented in terms of the other using pure unit
?
src/React.js
Outdated
@@ -122,6 +122,20 @@ function createClass(spec) { | |||
} | |||
exports.createClass = createClass; | |||
|
|||
function forceUpdateImpl(this_) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no longer used, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just forgot to push all changes.
Looks good to me. @paf31 Good for me to do the merge? |
👍 If you're happy, go ahead please. Sorry I haven't had time to review PRs as much lately. |
No problem. Thanks! |
forceUpdate. This PR includes two versions: with and without the callback argument: