What happened?
Errors in using rkt-query hooks can cause header auth to fail to be set successfully
const currEvent = useGetEventQuery({
variables: {
fixtureId,
}
});
useEffect(() => {
// 初始化設定
if(categories){
// categories is undefined, 0 is miss, but author header fail with api event
setCategoryId(categories[0]?.value);
}
}, [currEvent.isSuccess]);
Relevant log output or stack trace
Steps to reproduce
same up
Plugin version
0.0.9
React version
19.1.0
Operating System
None
Link to build, i.e. failing GitHub Action job
No response