Reproduction
const enabled = observable.box(false);
const query = createQuery(
() => Promise.resolve(Date.now()),
{
options: () => ({
enabled: enabled.get(),
}),
}
);
// this won't trigger fetching, which is unexpected
enabled.set(true);
Possible Solution:
|
reaction(() => config.options!(this), this.update, { |
Maybe this reaction should be fireImmediately? Not sure