Skip to content

Commit

Permalink
shortcut hydrate call when hydration is done
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Aug 13, 2024
1 parent 0c93397 commit a036a63
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/thick-coats-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"solid-js": patch
---

shortcut hydrate call when hydration is done
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"babel-plugin-jsx-dom-expressions": "^0.38.1",
"coveralls": "^3.1.1",
"csstype": "^3.1.0",
"dom-expressions": "0.38.3",
"hyper-dom-expressions": "0.38.3",
"dom-expressions": "0.38.4",
"hyper-dom-expressions": "0.38.4",
"jsdom": "^21.1.1",
"lit-dom-expressions": "0.38.3",
"lit-dom-expressions": "0.38.4",
"ncp": "^2.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
Expand Down
1 change: 0 additions & 1 deletion packages/solid/src/reactive/signal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,6 @@ export function createResource<T, S, R>(

if (sharedConfig.context) {
id = sharedConfig.getNextContextId();
let v;
if (options.ssrLoadFrom === "initial") initP = options.initialValue as T;
else if (sharedConfig.load && sharedConfig.has!(id)) initP = sharedConfig.load(id);
}
Expand Down
24 changes: 12 additions & 12 deletions pnpm-lock.yaml

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

0 comments on commit a036a63

Please sign in to comment.