pawajs 2.3.2 → 2.3.3

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.
@@ -81,7 +81,6 @@ function restorePawaStateFromContext(oldCtx, newCtx,stateContext,oldStateContext
81
81
  newVal.value = oldVal.value
82
82
  }
83
83
  }
84
- stateContext._hmrinitial = freshInitials
85
84
  }
86
85
  export const normal_component=(el,stateContext,setStateContext,mapsPlugin,formerStateContext,pawaContext,stateWatch,hmrPreserverContext,hmrOldStateContext)=>{
87
86
  // Checks if the content is an SVG fragment (graphic elements) without a root <svg> tag.
@@ -361,7 +360,7 @@ export const normal_component=(el,stateContext,setStateContext,mapsPlugin,former
361
360
  stateContexts?._error?.forEach((error) => {
362
361
  throw Error(error)
363
362
  })
364
- if (hmr) {
363
+ if (__pawaDev.tool) {
365
364
  stateContexts._hmrinitial= snapshotInsert(component._insert)
366
365
  }
367
366
  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.3",
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",