Skip to content

feat: prepare v22 release#5182

Open
timdeschryver wants to merge 2 commits into
mainfrom
prepare-v22
Open

feat: prepare v22 release#5182
timdeschryver wants to merge 2 commits into
mainfrom
prepare-v22

Conversation

@timdeschryver

Copy link
Copy Markdown
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[x] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Closes #

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Comment on lines +165 to +196
BEFORE:

The `selectId` function in the entity adapter configuration has a
`string | number` return type.

AFTER:

The `selectId` function in the entity adapter configuration is inferred
from the adapter configuration. The return type is `string` or `number`,
depending on the implementation of the `selectId` function.
If no `selectId` function is provided, the default implementation infers
the return type from the `id` property of the entity.

BEFORE:

```ts
interface User {
uid: string;
name: string;
}

const adapter = createEntityAdapter<User>({
selectId: (user) => user.uid,
});

// `id` is typed as string | number
adapter.getInitialState({
selectedId: null as string | number | null,
});
```

AFTER:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of 2 before/after sections, let's have single before/after for better readability (text + code example for both). Also, double check the code example in before section, it doesn't seem correct. It can be the same as the one in after section, just showing a different type

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@karstennolte1987

Copy link
Copy Markdown

Do one of you already know when ngrx signal store for ng22 will be released? Thank you in advance.

@timdeschryver

Copy link
Copy Markdown
Member Author

Do one of you already know when ngrx signal store for ng22 will be released? Thank you in advance.

See #5158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants