Skip to content

Commit

Permalink
Merge branch 'remaxToNanachi'
Browse files Browse the repository at this point in the history
  • Loading branch information
peacejj committed Jan 23, 2024
2 parents 19c410f + 96c6265 commit 47646c3
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 20 deletions.
5 changes: 3 additions & 2 deletions dist/ReactAli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* 运行于支付宝小程序的React by 司徒正美 Copyright 2024-01-11
* 运行于支付宝小程序的React by 司徒正美 Copyright 2024-01-19
*/

var arrayPush = Array.prototype.push;
Expand Down Expand Up @@ -1954,9 +1954,10 @@ function workLoop(deadline) {
info = fiber.return;
} else {
var dom = getContainer(fiber);
var __unmaskedContext = fiber && fiber.stateNode && fiber.stateNode.__unmaskedContext || {};
info = {
containerStack: [dom],
contextStack: [fiber.stateNode.__unmaskedContext]
contextStack: [__unmaskedContext]
};
}
reconcileDFS(fiber, info, deadline, ENOUGH_TIME);
Expand Down
5 changes: 3 additions & 2 deletions dist/ReactBu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* 运行于支付宝小程序的React by 司徒正美 Copyright 2024-01-11
* 运行于支付宝小程序的React by 司徒正美 Copyright 2024-01-19
*/

var arrayPush = Array.prototype.push;
Expand Down Expand Up @@ -1960,9 +1960,10 @@ function workLoop(deadline) {
info = fiber.return;
} else {
var dom = getContainer(fiber);
var __unmaskedContext = fiber && fiber.stateNode && fiber.stateNode.__unmaskedContext || {};
info = {
containerStack: [dom],
contextStack: [fiber.stateNode.__unmaskedContext]
contextStack: [__unmaskedContext]
};
}
reconcileDFS(fiber, info, deadline, ENOUGH_TIME);
Expand Down
5 changes: 3 additions & 2 deletions dist/ReactQuick.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* 运行于快应用的React by 司徒正美 Copyright 2024-01-11
* 运行于快应用的React by 司徒正美 Copyright 2024-01-19
*/

var arrayPush = Array.prototype.push;
Expand Down Expand Up @@ -3112,9 +3112,10 @@ function workLoop(deadline) {
info = fiber.return;
} else {
var dom = getContainer(fiber);
var __unmaskedContext = fiber && fiber.stateNode && fiber.stateNode.__unmaskedContext || {};
info = {
containerStack: [dom],
contextStack: [fiber.stateNode.__unmaskedContext]
contextStack: [__unmaskedContext]
};
}
reconcileDFS(fiber, info, deadline, ENOUGH_TIME);
Expand Down
5 changes: 3 additions & 2 deletions dist/ReactWX.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* 运行于微信小程序的React by 司徒正美 Copyright 2024-01-11T10
* 运行于微信小程序的React by 司徒正美 Copyright 2024-01-19T11
* IE9+
*/

Expand Down Expand Up @@ -2288,9 +2288,10 @@ function workLoop(deadline) {
info = fiber.return;
} else {
var dom = getContainer(fiber);
var __unmaskedContext = fiber && fiber.stateNode && fiber.stateNode.__unmaskedContext || {};
info = {
containerStack: [dom],
contextStack: [fiber.stateNode.__unmaskedContext]
contextStack: [__unmaskedContext]
};
}
reconcileDFS(fiber, info, deadline, ENOUGH_TIME);
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/lib/ReactAli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* 运行于支付宝小程序的React by 司徒正美 Copyright 2024-01-11
* 运行于支付宝小程序的React by 司徒正美 Copyright 2024-01-19
*/

var arrayPush = Array.prototype.push;
Expand Down Expand Up @@ -1958,9 +1958,10 @@ function workLoop(deadline) {
info = fiber.return;
} else {
var dom = getContainer(fiber);
var __unmaskedContext = fiber && fiber.stateNode && fiber.stateNode.__unmaskedContext || {};
info = {
containerStack: [dom],
contextStack: [fiber.stateNode.__unmaskedContext]
contextStack: [__unmaskedContext]
};
}
reconcileDFS(fiber, info, deadline, ENOUGH_TIME);
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/lib/ReactBu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* 运行于支付宝小程序的React by 司徒正美 Copyright 2024-01-11
* 运行于支付宝小程序的React by 司徒正美 Copyright 2024-01-19
*/

var arrayPush = Array.prototype.push;
Expand Down Expand Up @@ -1964,9 +1964,10 @@ function workLoop(deadline) {
info = fiber.return;
} else {
var dom = getContainer(fiber);
var __unmaskedContext = fiber && fiber.stateNode && fiber.stateNode.__unmaskedContext || {};
info = {
containerStack: [dom],
contextStack: [fiber.stateNode.__unmaskedContext]
contextStack: [__unmaskedContext]
};
}
reconcileDFS(fiber, info, deadline, ENOUGH_TIME);
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/lib/ReactQuick.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* 运行于快应用的React by 司徒正美 Copyright 2024-01-11
* 运行于快应用的React by 司徒正美 Copyright 2024-01-19
*/

var arrayPush = Array.prototype.push;
Expand Down Expand Up @@ -3112,9 +3112,10 @@ function workLoop(deadline) {
info = fiber.return;
} else {
var dom = getContainer(fiber);
var __unmaskedContext = fiber && fiber.stateNode && fiber.stateNode.__unmaskedContext || {};
info = {
containerStack: [dom],
contextStack: [fiber.stateNode.__unmaskedContext]
contextStack: [__unmaskedContext]
};
}
reconcileDFS(fiber, info, deadline, ENOUGH_TIME);
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/lib/ReactWX.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* 运行于微信小程序的React by 司徒正美 Copyright 2024-01-11T10
* 运行于微信小程序的React by 司徒正美 Copyright 2024-01-19T11
* IE9+
*/

Expand Down Expand Up @@ -2288,9 +2288,10 @@ function workLoop(deadline) {
info = fiber.return;
} else {
var dom = getContainer(fiber);
var __unmaskedContext = fiber && fiber.stateNode && fiber.stateNode.__unmaskedContext || {};
info = {
containerStack: [dom],
contextStack: [fiber.stateNode.__unmaskedContext]
contextStack: [__unmaskedContext]
};
}
reconcileDFS(fiber, info, deadline, ENOUGH_TIME);
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nanachi-cli",
"version": "1.8.30",
"version": "1.8.31",
"description": "cli tool for nanachi",
"bin": {
"nanachi": "./bin/index.js"
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/test/ReactWX.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* 运行于微信小程序的React by 司徒正美 Copyright 2024-01-11T10
* 运行于微信小程序的React by 司徒正美 Copyright 2024-01-19T11
* IE9+
*/

Expand Down Expand Up @@ -2290,9 +2290,10 @@ function workLoop(deadline) {
info = fiber.return;
} else {
var dom = getContainer(fiber);
var __unmaskedContext = fiber && fiber.stateNode && fiber.stateNode.__unmaskedContext || {};
info = {
containerStack: [dom],
contextStack: [fiber.stateNode.__unmaskedContext]
contextStack: [__unmaskedContext]
};
}
reconcileDFS(fiber, info, deadline, ENOUGH_TIME);
Expand Down
4 changes: 3 additions & 1 deletion packages/fiber/scheduleWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,11 @@ function workLoop(deadline) {
info = fiber.return;
} else {
let dom = getContainer(fiber);
// 考虑到有可能页面还没有完全实例化,用户就退出页面的情况。就会报错。
const __unmaskedContext = fiber && fiber.stateNode && fiber.stateNode.__unmaskedContext || {};
info = {
containerStack: [dom],
contextStack: [fiber.stateNode.__unmaskedContext]
contextStack: [__unmaskedContext]
};
}

Expand Down

0 comments on commit 47646c3

Please sign in to comment.