feat:fix dirty props cannot be rendered in promise
This commit is contained in:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user