feat:fix dirty props cannot be rendered in promise

This commit is contained in:
pengfei.zhou
2021-03-04 14:35:34 +08:00
committed by osborn
parent aa56fd93d9
commit 936bd60293
10 changed files with 123 additions and 2 deletions

View File

@@ -165,6 +165,9 @@ export class Context {
const gContexts: Map<string, Context> = new Map
const gModules: Map<string, any> = new Map
export function allContexts() {
return gContexts.values()
}
export function jsObtainContext(id: string) {
if (gContexts.has(id)) {
const context = gContexts.get(id)

View File

@@ -203,6 +203,9 @@ export class Context {
const gContexts: Map<string, Context> = new Map
const gModules: Map<string, any> = new Map
export function allContexts() {
return gContexts.values()
}
export function jsObtainContext(id: string) {
if (gContexts.has(id)) {
const context = gContexts.get(id)