You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7694702
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/solid/src/client/flow.ts
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,11 @@ type ForOptions<T> = {
34
34
name?: string;
35
35
};
36
36
37
-
constnarrowedError=(name: string)=>
38
-
IS_DEV
37
+
constnarrowedError=(name: string): never=>{
38
+
throwIS_DEV
39
39
? `Attempting to access a stale value from <${name}> that could possibly be undefined. This may occur because you are reading the accessor returned from the component at a time where it has already been unmounted. We recommend cleaning up any stale timers or async, or reading from the initial condition.`
40
40
: `Stale read from <${name}>.`;
41
+
};
41
42
42
43
/**
43
44
* Creates a list of elements from a list.
@@ -248,7 +249,7 @@ export function Show<T>(props: {
248
249
// `latest()`-selected first mount (#3948) — while a read
249
250
// after unmount sees the committed falsy and throws.
0 commit comments