Skip to content

Improve View Models documentation with best practices and clarification#423

Open
mohaelmrabet wants to merge 3 commits into
AdobeDocs:mainfrom
mohaelmrabet:patch-1
Open

Improve View Models documentation with best practices and clarification#423
mohaelmrabet wants to merge 3 commits into
AdobeDocs:mainfrom
mohaelmrabet:patch-1

Conversation

@mohaelmrabet
Copy link
Copy Markdown

@mohaelmrabet mohaelmrabet commented Nov 17, 2025

I improved the View Models documentation to make it easier to understand and more useful for developers.

What I added:

  • clearer explanation of blocks vs. view models
  • simple notes about SRP and why view models help keep code clean
  • tips on reusability and using multiple view models
  • a short section about cache behavior
  • naming guidelines
  • a small checklist for creating a view model

Nothing technical was changed—just clearer wording and extra best practices to help developers.

Purpose of this pull request

This pull request (PR) ...

Affected pages

I improved the View Models documentation to make it easier to understand and more useful for developers.

What I added:
- clearer explanation of blocks vs. view models
- simple notes about SRP and why view models help keep code clean
- tips on reusability and using multiple view models
- a short section about cache behavior
- naming guidelines
- a small checklist for creating a view model

Nothing technical was changed—just clearer wording and extra best practices to help developers.
@github-project-automation github-project-automation Bot moved this from 📋 Needs Review to 👍 Approved in Commerce - Pull Requests May 15, 2026
@meker12 meker12 self-assigned this May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👍 Approved

Development

Successfully merging this pull request may close these issues.

3 participants