pawajs 1.5.4 → 1.5.5

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/index.js CHANGED
@@ -265,6 +265,9 @@ export const RegisterComponent = (...args) => {
265
265
  const component = args[i + 1];
266
266
  if (typeof name === 'string' && typeof component === 'function') {
267
267
  // if (components.has(name.toUpperCase())) continue;
268
+ if (!isServer() && lazyComponents.has(name.toUpperCase())) {
269
+ lazyComponents.delete(name.toLocaleUpperCase())
270
+ }
268
271
  components.set(name.toUpperCase(), component);
269
272
  } else {
270
273
  console.warn('Mismatched arguments for RegisterComponent. Expected pairs of (string, function).');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pawajs",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "type":"module",
5
5
  "description": "pawajs library (reactive web runtime) for easily building web ui, enhancing html element, micro frontend etc ",
6
6
  "main": "index.js",
package/pawaElement.js CHANGED
@@ -51,7 +51,8 @@ export class PawaElement {
51
51
  return Array.from(this._el.children)
52
52
  }
53
53
  checkLazy(){
54
- if (lazyComponents.has(splitAndAdd(this._el.tagName)) && !components.has(splitAndAdd(this._el.tagName))) {
54
+ if (lazyComponents.has(splitAndAdd(this._el.tagName))) {
55
+ if(components.has(splitAndAdd(this._el.tagName))) return
55
56
  this._lazy=true
56
57
  if (!lazyComponentElement.has(splitAndAdd(this._el.tagName))) {
57
58
  createIntersectionObserver(this._el)