Skip to content

Conversation

@crisbeto
Copy link
Member

@crisbeto crisbeto commented Dec 3, 2025

Includes the following internal refactors:

refactor(multiple): remove repeater strategy token

It seems like the _VIEW_REPEATER_STRATEGY token was introduced as a way to tree shake the different strategies depending on which components are used. While that's true, it also makes the APIs less ergonomic since users have to remember to import additional directives to use them.

These changes remove the token in favor of switching the strategy internally which means that we can't tree shake the strategies anymore, but they're relatively small (< 0.5kb minified, not gzipped).

refactor(cdk/scrolling): add lightweight token for virtual scroll viewport

Adds a lightweight token for the virtual scroll viewport so it can be injected without a hard dependency.

@crisbeto crisbeto requested a review from a team as a code owner December 3, 2025 12:14
@crisbeto crisbeto requested review from andrewseguin and tjshiu and removed request for a team December 3, 2025 12:14
@crisbeto crisbeto added target: minor This PR is targeted for the next minor release merge: preserve commits When the PR is merged, a rebase and merge should be performed labels Dec 3, 2025
It seems like the `_VIEW_REPEATER_STRATEGY` token was introduced as a way to tree shake the different strategies depending on which components are used. While that's true, it also makes the APIs less ergonomic since users have to remember to import additional directives to use them.

These changes remove the token in favor of switching the strategy internally which means that we can't tree shake the strategies anymore, but they're relatively small (< 0.5kb minified, not gzipped).
…wport

Adds a lightweight token for the virtual scroll viewport so it can be injected without a hard dependency.
@crisbeto crisbeto force-pushed the table-recycle-strategy branch from 2c751d6 to a36fee6 Compare December 3, 2025 12:17
@crisbeto crisbeto removed the request for review from tjshiu December 4, 2025 06:57
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Dec 4, 2025
@crisbeto crisbeto merged commit 2ad3866 into angular:main Dec 4, 2025
23 of 26 checks passed
@crisbeto
Copy link
Member Author

crisbeto commented Dec 4, 2025

This PR was merged into the repository. The changes were merged into the following branches:

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

Labels

action: merge The PR is ready for merge by the caretaker area: cdk/scrolling merge: preserve commits When the PR is merged, a rebase and merge should be performed target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants