Alex Yang

Results 510 comments of Alex Yang

Just tried to add a test using React, and it's pretty hard now - Vitest version is tooooo outdated, it's v1, now it's v3 - Idk why setting up the...

> And regarding the PR, I'm not sure if we should try to revalidate once it’s expired, since at that point the user will probably be signed out. But, I...

I think maybe we should throw the error or log a warning right now in useSession if it expires? Or add an extra parameter called `autoRefetch` or something

> I think happy dom strictly tries to emulate the browser (node APIs won't work) background: to reproduce https://github.com/better-auth/better-auth/issues/2715 and https://github.com/better-auth/better-auth/issues/1006 Yeah, I set up a real playwright + nodejs...

Maybe we could integrate with https://github.com/nanostores/query ?

My error stack here ```log (anonymous) @ react-dom-client.production.js:11023 x @ scheduler.production.js:151 error-boundary-callbacks.ts:56 Error: Minified React error #310; visit https://react.dev/errors/310 for the full message or use the non-minified dev environment for...

```tsx /** * The global router that wraps the application components. */ function Router({ actionQueue, assetPrefix, }: { actionQueue: AppRouterActionQueue assetPrefix: string }) { const [state, dispatch] = useReducer(actionQueue) const...

I faced a similar issue when using Portal. My solution is to wrap the setClose into a `startTransition ` https://github.com/toeverything/AFFiNE/commit/fb9bd21820f034f7f8df843ac4834dc9424c4455

https://github.com/run-llama/LlamaIndexTS/pull/2076