@ethlete/query 5.40.0 → 5.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ethlete/query
2
2
 
3
+ ## 5.40.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`15913c7`](https://github.com/ethlete-io/ethdk/commit/15913c7cad03b3dd8be3c50b65e5dc8577b6f7da) Thanks [@TomTomB](https://github.com/TomTomB)! - Ignore initial read errors in `effectComputed` util to avoid Angular throwing required input read but no value available yet error.
8
+
3
9
  ## 5.40.0
4
10
 
5
11
  ### Minor Changes
@@ -635,7 +635,15 @@ function toQuerySignal(source, options) {
635
635
  return s;
636
636
  }
637
637
  function effectComputed(computation, injector) {
638
- const lastResult = signal(computation());
638
+ let initialData = null;
639
+ try {
640
+ initialData = computation();
641
+ }
642
+ catch {
643
+ // Ignore errors in the initial computation
644
+ // Angular might throw an error if required inputs are read but not available yet
645
+ }
646
+ const lastResult = signal(initialData);
639
647
  effect(() => {
640
648
  const data = runInInjectionContext(injector, () => computation());
641
649
  untracked(() => {