Skip to content

Commit

Permalink
fix #1982 ErrorBoundary with ExternalSource
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Jan 3, 2024
1 parent 968e2cc commit 292aba4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/moody-spiders-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"solid-js": patch
---

fix #1982 ErrorBoundary with ExternalSource
2 changes: 1 addition & 1 deletion packages/solid/src/reactive/signal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,7 @@ function createComputation<Next, Init = unknown>(

if ("_SOLID_DEV_" && options && options.name) c.name = options.name;

if (ExternalSourceFactory) {
if (ExternalSourceFactory && c.fn) {
const [track, trigger] = createSignal<void>(undefined, { equals: false });
const ordinary = ExternalSourceFactory(c.fn, trigger);
onCleanup(() => ordinary.dispose());
Expand Down

0 comments on commit 292aba4

Please sign in to comment.