Skip to content

Commit

Permalink
fix: 🐛 fix prop compression error
Browse files Browse the repository at this point in the history
  • Loading branch information
nickreese committed Sep 25, 2021
1 parent 53d3380 commit 246c68a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@elderjs/elderjs",
"version": "1.6.1",
"version": "1.6.2",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"engineStrict": true,
Expand Down
2 changes: 1 addition & 1 deletion src/partialHydration/hydrateComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const $$ejs = (par,eager)=>{
const prefix = '${prefix}';
const initComponent = (target, component) => {
const propProm = ((typeof component.props === 'string') ? fetch(prefix+'/props/'+ component.props).then(p => $ejs(p.json())) : new Promise((resolve) => resolve($ejs(component.props))));
const propProm = ((typeof component.props === 'string') ? fetch(prefix+'/props/'+ component.props).then(p => p.json()).then(r => $ejs(r)) : new Promise((resolve) => resolve($ejs(component.props))));
const compProm = import(prefix + '/svelte/components/' + component.component);
Promise.all([compProm,propProm]).then(([comp,props])=>{
Expand Down

0 comments on commit 246c68a

Please sign in to comment.