synchronous state with query? is this ok?
i've typically heard react query referred to as an async state manager, in addition to server state
my questin is, is there anything inherently wrong with using it for synchronous state, for the sake of keeping the code style/toolchain consistent?
i have a one big piece of data that my whole application needs access to, and i need to initialize it when its provider mounts. previously i was just
i've modified it now to do this. this isn't async nor server state- is there any footguns here i need to be aware of, or anything simply incorrect?
my questin is, is there anything inherently wrong with using it for synchronous state, for the sake of keeping the code style/toolchain consistent?
i have a one big piece of data that my whole application needs access to, and i need to initialize it when its provider mounts. previously i was just
useEffect(() => ..., []) and setting the value with useState in therei've modified it now to do this. this isn't async nor server state- is there any footguns here i need to be aware of, or anything simply incorrect?