Skip to content

Commit

Permalink
Merge pull request #68 from SaulMoro/next
Browse files Browse the repository at this point in the history
fix: error with lazy signals in edge cases and docs typo
  • Loading branch information
SaulMoro authored Mar 12, 2024
2 parents 58a3814 + 5d9e728 commit 473cd34
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [17.3.1-next.1](https://github.com/SaulMoro/ngrx-rtk-query/compare/v17.3.0...v17.3.1-next.1) (2024-03-12)


### Bug Fixes

* problem with lazy signal in edge cases ([5d3324f](https://github.com/SaulMoro/ngrx-rtk-query/commit/5d3324ff60900ec7b9442ced35ef44531b444d6d))

# [17.3.0](https://github.com/SaulMoro/ngrx-rtk-query/compare/v17.2.1...v17.3.0) (2024-03-12)


Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ npm install ngrx-rtk-query
| :----------------: | :--------------------: | :--------------: | :-----------------: |
| 17.x | >=17.3.x (signals) | ~2.2.1 | Bugs / New Features |
| 17.x | >=17.1.x (signals) | ~2.2.1 | Bugs |
| 16.x | >=4.2.x (rxjs) | ~1.9.5 | Critical bugs |
| 15.x | 4.1.x (rxjs) | 1.9.5 | None |
| 16.x | >=4.2.x (rxjs) | ~1.9.3 | Critical bugs |
| 15.x | 4.1.x (rxjs) | 1.9.3 | None |

Only the latest version of Angular in the table above is actively supported. This is due to the fact that compilation of Angular libraries is [incompatible between major versions](https://angular.io/guide/creating-libraries#ensuring-library-version-compatibility).

Expand Down
2 changes: 1 addition & 1 deletion projects/ngrx-rtk-query/src/lib/build-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export function buildHooks<Definitions extends EndpointDefinitions>({
const useQueryState: UseQueryState<any> = (arg: any, options = {}) => {
// We need to use `toLazySignal` here to prevent 'signal required inputs' errors
const lazyArg = isSignal(arg)
? toLazySignal(arg, { initialValue: skipToken })
? toLazySignal(arg, { initialValue: undefined })
: typeof arg === 'function'
? arg
: () => arg;
Expand Down

0 comments on commit 473cd34

Please sign in to comment.