Lucas Barake

Results 4 comments of Lucas Barake

If you're using the `next/router` pages router, this might be of help: ```ts import { useRouter } from "next/router"; import NProgress from "nprogress"; export function useCustomRouter(): ReturnType { const router...

> And in your example you messed up sheet content with dialog content https://github.com/lucas-patron/shadcnui-sheet-dialog/blob/4c54e0c81dcdacea3e96f2af149caae06eb29351/src/pages/index.tsx#LL38C8-L38C8 Whoops, silly mistake. Didn't notice the use of dialog content. Oddly enough, while it fixed it...

So, instead of registering the finalizer within the handler, like this: ```ts yield* Effect.addFinalizer(() => sseManager.unregisterConnection({ connectionId, userId }) ) ``` You'd move it to the stream itself: ```ts const...