Skip to content

refactor(input): push inline style toggle logic into FormattingStore (iOS & Android)#592

Merged
hryhoriiK97 merged 1 commit into
mainfrom
hryhoriiK97/push-toggle-logic-into-stores
Jul 25, 2026
Merged

refactor(input): push inline style toggle logic into FormattingStore (iOS & Android)#592
hryhoriiK97 merged 1 commit into
mainfrom
hryhoriiK97/push-toggle-logic-into-stores

Conversation

@hryhoriiK97

Copy link
Copy Markdown
Collaborator

What/Why?

Move blocking checks, conflict stripping, and the active-check-then-add-or-remove toggle pattern from the view into FormattingStore on both platforms. The view now calls high-level store operations (toggleStyle, isToggleBlocked) instead of manually orchestrating addRange/removeType sequences. Pending style management stays in the view as it is transient caret-level state tied to the UI.

Testing

PR Checklist

  • Code compiles and runs on iOS
  • Code compiles and runs on Android
  • Updated documentation/README if applicable
  • Ran example app to verify changes
  • E2E tests are passing
  • Required E2E tests have been added (if applicable)

…(iOS & Android)

Move blocking checks, conflict stripping, and the active-check-then-add-or-remove
toggle pattern from the view into FormattingStore on both platforms. The view now
calls high-level store operations (toggleStyle, isToggleBlocked) instead of manually
orchestrating addRange/removeType sequences. Pending style management stays in the
view as it is transient caret-level state tied to the UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
@hryhoriiK97
hryhoriiK97 merged commit 1eb68a1 into main Jul 25, 2026
8 checks passed
@hryhoriiK97
hryhoriiK97 deleted the hryhoriiK97/push-toggle-logic-into-stores branch July 25, 2026 22:51
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