pawajs 1.4.28 → 1.4.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -1
- package/index.js +1 -4
- package/package.json +1 -1
- package/pawaElement.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -13,4 +13,5 @@ CHANGELOG.md
|
|
|
13
13
|
+ version 1.4.24 - add HMR mapping
|
|
14
14
|
+ version 1.4.26 - fixed key getcomment id
|
|
15
15
|
+ version 1.4.27 - fixed __pawaDev Tools,
|
|
16
|
-
+ version 1.4.28 - fixed pawaElement checkStaticsContext
|
|
16
|
+
+ version 1.4.28 - fixed pawaElement checkStaticsContext
|
|
17
|
+
+ version 1.4.30 - removed console warn from useContext
|
package/index.js
CHANGED
|
@@ -428,10 +428,7 @@ export const useContext = (context) => {
|
|
|
428
428
|
if (stateContext?._transportContext[context.id]) {
|
|
429
429
|
const contexts = stateContext._transportContext[context.id]
|
|
430
430
|
return contexts
|
|
431
|
-
}
|
|
432
|
-
console.warn('this component not in the context tree')
|
|
433
|
-
}
|
|
434
|
-
|
|
431
|
+
}
|
|
435
432
|
} else {
|
|
436
433
|
return serverInstance.useContext?.(context)
|
|
437
434
|
}
|
package/package.json
CHANGED
package/pawaElement.js
CHANGED
|
@@ -150,7 +150,7 @@ export class PawaElement {
|
|
|
150
150
|
})
|
|
151
151
|
}
|
|
152
152
|
reCheckStaticContext(){
|
|
153
|
-
const context=this
|
|
153
|
+
const context=this._context
|
|
154
154
|
if (this._staticContext.length > 0) {
|
|
155
155
|
for (const [key,value] of Object.entries(context)) {
|
|
156
156
|
if (this._staticContext.includes(key)) {
|