-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Angular injectQueries fixes #8690
base: main
Are you sure you want to change the base?
Conversation
View your CI Pipeline Execution ↗ for commit 3f2fc90.
☁️ Nx Cloud last updated this comment at |
Sizes for commit 3f2fc90:
|
Hey @crutchcorn! I just noticed you dropped a PR to fix I'm not sure if that MR can serve as an inspiration for your work, or possibly even avoid work altogether? |
Should be something like this to proxify the individual queries, but I'm getting errors. I will look into this more. const resultSignal = computed(() => {
const subscriberResult = resultFromSubscriberSignal()
const optimisticResult = optimisticCombinedResultSignal()
return subscriberResult ?? optimisticResult
})
return computed(() => {
const result = resultSignal()
if (Array.isArray(result)) {
return result.map((query) => signalProxy(query))
}
return result
})
}) as unknown as Signal<TCombinedResult> |
More todos: [ ] Should be able to throw an error when |
This PR:
injectQueries
injectQueries
injectQueries
runtimeinjectQueries
TODO:
signalProxy