pawajs 2.3.2 → 2.3.4

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.
@@ -66,22 +66,16 @@ function restorePawaStateFromContext(oldCtx, newCtx,stateContext,oldStateContext
66
66
  for (const key of Object.keys(newCtx)) {
67
67
  const oldVal = oldCtx[key]
68
68
  const newVal = newCtx[key]
69
- if (!isPawaState(oldVal) || !isPawaState(newVal)) continue
70
69
 
71
70
  const initializerChanged =
72
71
  prevInitials !== undefined &&
73
72
  Object.prototype.hasOwnProperty.call(prevInitials, key) &&
74
73
  !sameInitial(prevInitials[key], freshInitials[key])
75
74
 
76
- if (initializerChanged) {
77
- continue
78
- }
79
-
80
75
  if (typeof newVal.value === typeof oldVal.value ) {
81
76
  newVal.value = oldVal.value
82
77
  }
83
78
  }
84
- stateContext._hmrinitial = freshInitials
85
79
  }
86
80
  export const normal_component=(el,stateContext,setStateContext,mapsPlugin,formerStateContext,pawaContext,stateWatch,hmrPreserverContext,hmrOldStateContext)=>{
87
81
  // Checks if the content is an SVG fragment (graphic elements) without a root <svg> tag.
@@ -361,7 +355,7 @@ export const normal_component=(el,stateContext,setStateContext,mapsPlugin,former
361
355
  stateContexts?._error?.forEach((error) => {
362
356
  throw Error(error)
363
357
  })
364
- if (hmr) {
358
+ if (__pawaDev.tool) {
365
359
  stateContexts._hmrinitial= snapshotInsert(component._insert)
366
360
  }
367
361
  render(child, context)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pawajs",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
4
4
  "type":"module",
5
5
  "description": "pawajs library (reactive web runtime) for easily building web ui, enhancing html element, micro frontend, spa etc ",
6
6
  "main": "index.js",