Skip to content

Update README examples to use StateUpdatable API#9

Merged
anthony1810 merged 1 commit intomainfrom
develop
Feb 1, 2026
Merged

Update README examples to use StateUpdatable API#9
anthony1810 merged 1 commit intomainfrom
develop

Conversation

@anthony1810
Copy link
Owner

Summary

  • Update code examples to use the new StateUpdatable protocol
  • Replace ScreenState with LoadmoreScreenState as the base class for features with pagination
  • Use closure-based updateState API instead of the old tryUpdate method
  • Reference canShowLoadmore from LoadmoreScreenState
  • Add items.isEmpty check before showing load more indicator

Test plan

  • README examples reflect current API patterns

- Replace FeatureViewState with LoadmoreScreenState base class
- Use closure-based updateState API instead of tryUpdate
- Reference canShowLoadmore from LoadmoreScreenState
- Add items.isEmpty check for load more indicator
@anthony1810 anthony1810 merged commit db49f92 into main Feb 1, 2026
1 check passed
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.

1 participant