Skip to content

Conversation

@obenland
Copy link
Member

@obenland obenland commented Nov 21, 2025

Summary

Fixes two critical bugs in the infinite scroll implementation for the social-web feed while eliminating an infinite update loop.

Changes

  • Fix unclickable items during loading: Removed isLoadingMore from DataViews isLoading prop so items on page 1 remain clickable while page 2+ is loading
  • Fix page reload behavior: Don't persist paged URL parameter when infinite scroll is enabled, ensuring reloads always start from page 1 (standard infinite scroll UX)
  • Fix selection cleanup: Check allLoadedRecords instead of feed to prevent premature selection clearing during page transitions
  • Remove infinite loop: Removed actor switching effect that was causing infinite update loop due to normalizedView creating new object references on every render

Known Issue

The actor switching state cleanup (Bug 1) has been removed to prevent the infinite loop. This will need to be addressed next with a different approach that doesn't trigger the loop.

Test Plan

  • Verify no "Maximum update depth exceeded" error in console
  • Verify items on page 1 remain clickable while scrolling to load page 2
  • Verify page reload on page 3 returns to page 1
  • Test user switching behavior (known to have issues)

- Fix items becoming unclickable during page loading by removing
  isLoadingMore from DataViews isLoading prop. Items on page 1 now
  remain clickable while page 2+ is loading.

- Fix page reload behavior for infinite scroll by not persisting the
  paged URL parameter when infinite scroll is enabled. Reloading now
  always starts from page 1, following standard infinite scroll UX.

- Fix selection cleanup to check allLoadedRecords instead of feed to
  prevent premature selection clearing during page transitions.

- Remove actor switching effect that was causing infinite update loop
  due to normalizedView creating new object references on every render.
@github-actions github-actions bot added [Focus] Editor Changes to the ActivityPub experience in the block editor [Status] In Progress labels Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Focus] Editor Changes to the ActivityPub experience in the block editor [Status] In Progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants