Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f575417

Browse files
committedFeb 5, 2018
backport Fix proxy adapter #842
1 parent 49e8d70 commit f575417

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/proxy/createClassProxy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const proxies = new WeakMap()
1717

1818
const defaultRenderOptions = {
1919
preRender: identity,
20-
postRender: (target, result) => result,
20+
postRender: result => result,
2121
}
2222

2323
const defineClassMember = (Class, methodName, methodBody) =>
@@ -96,7 +96,7 @@ function createClassProxy(InitialComponent, proxyKey, options) {
9696
result = CurrentComponent.prototype.render.call(this)
9797
}
9898

99-
return renderOptions.postRender(this, result)
99+
return renderOptions.postRender(result)
100100
}
101101

102102
const defineProxyMethods = Proxy => {

‎src/reconciler/proxyAdapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const renderReconciler = (target, force) => {
1919
target[RENDERED_GENERATION] = currentGeneration
2020
}
2121

22-
export const proxyWrapper = (target, element) => {
22+
export const proxyWrapper = element => {
2323
// post wrap on post render
2424
if (!element) {
2525
return element

0 commit comments

Comments
 (0)
Please sign in to comment.