File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -304,10 +304,9 @@ export const createSSE = <T = string>(
304304 // subscription to `url` is established immediately. The `prevUrl` guard
305305 // prevents a redundant reconnect on the first pass (we already connected).
306306 if ( typeof url === "function" ) {
307- const urlFn = url as Accessor < string > ;
308- let prevUrl = untrack ( urlFn ) ;
307+ let prevUrl = untrack ( url ) ;
309308 createComputed ( ( ) => {
310- const resolvedUrl = urlFn ( ) ;
309+ const resolvedUrl = url ( ) ;
311310 if ( resolvedUrl !== prevUrl ) {
312311 prevUrl = resolvedUrl ;
313312 untrack ( ( ) => {
Original file line number Diff line number Diff line change 1313 *
1414 * This file has no Solid reactive code — it is safe to run in any Worker context.
1515 */
16- import { makeSSE , SSEReadyState , type SSEReadyStateValue } from "./sse.js" ;
16+ import { makeSSE , type SSEReadyStateValue } from "./sse.js" ;
1717import type { SSEWorkerMessage } from "./worker.js" ;
1818
1919const connections = new Map < string , VoidFunction > ( ) ;
You can’t perform that action at this time.
0 commit comments