@unsetsoft/ryunixjs 0.4.13-nightly.48 → 0.4.13-nightly.49

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/dist/Ryunix.js CHANGED
@@ -289,9 +289,7 @@
289
289
  }
290
290
  }, [currentPath]);
291
291
 
292
- const Children = children ? children : component();
293
-
294
- return currentPath === path ? Children : null
292
+ return currentPath === path ? component() : null
295
293
  };
296
294
 
297
295
  const Navigate = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsetsoft/ryunixjs",
3
- "version": "0.4.13-nightly.48",
3
+ "version": "0.4.13-nightly.49",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "types": "./dist/Ryunix.d.ts",
@@ -15,9 +15,7 @@ const Router = ({ path, component, children }) => {
15
15
  }
16
16
  }, [currentPath])
17
17
 
18
- const Children = children ? children : component()
19
-
20
- return currentPath === path ? Children : null
18
+ return currentPath === path ? component() : null
21
19
  }
22
20
 
23
21
  const Navigate = () => {