eakl
eakl
You mean something like this? ```javascript handleFetch: (payload, operation) => { const { accessToken, profile } = payload setAccessToken(accessToken) operation.setContext(({ headers = {} }) => ({ headers: { ...headers, authorization:...
> yes, but I am thinking now that your code is correct. the idea is: yes, you will have some fallen requests before you get a valid token, but all...
So my state is retrieved in AuthLink before the state update in refreshLink was made. One workaround is to use ref.current instead of the state from useState()
> that will not help. I think you could play w expiration date by validating it w/ one minute gap, so you will start refreshing before your token will actually...
useUpdateEffect has `useSize(graphRef).width` and `useSize(graphRef).height` as dependencies. Shouldn't the function be triggered every time the container resizes? By using `graph.changeSize(width, height)`, the window expands but the canvas doesn't (The graph...
Seems like useEffect is causing problem In the following code, `` calls `setLayout()` with the new layout Without `useEffect`, the code works, with useEffect, it fails with the same error...
Has someone been able to test it?
This issue is related to this discussion: https://github.com/antvis/Graphin/discussions/415
> That's [sveltejs/svelte#6900](https://github.com/sveltejs/svelte/issues/6900) That fixed the problem with Svelte/Vite. I moved my `index.html` inside `src` and changed the project root to `src` in `svelte.config.js`. `svelte.config.js` needs to reference `vite.config.ts` relative...