Skip to content

Errors in using rkt-query hooks can cause header auth to fail to be set successfully #2

@imagine10255

Description

@imagine10255

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions