Skip to content

Enhance guide with fresh and refresh method details#61

Open
homestar9 wants to merge 3 commits intoortus-docs:12.0.0from
homestar9:patch-3
Open

Enhance guide with fresh and refresh method details#61
homestar9 wants to merge 3 commits intoortus-docs:12.0.0from
homestar9:patch-3

Conversation

@homestar9
Copy link
Copy Markdown
Contributor

Added sections for 'fresh' and 'refresh' methods to the working with entities guide.

Added sections for 'fresh' and 'refresh' methods to the working with entities guide.
Copilot AI review requested due to automatic review settings March 30, 2026 20:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the “Working with Entities” getting-started guide to document additional entity lifecycle helpers, expanding the method reference alongside existing entries like isLoaded and clone.

Changes:

  • Added a fresh section describing how to retrieve a new entity instance from the DB using the current entity’s key.
  • Added a refresh section describing how to sync an entity’s attributes from the DB.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@homestar9
Copy link
Copy Markdown
Contributor Author

Note: Added these because Gitbook only provides information on refresh() or fresh() if you ask a question. If you simply type in the method name, it has no results. This change should hopefully help Gitbook search work better:

image

Copy link
Copy Markdown
Contributor Author

@homestar9 homestar9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated example

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.

2 participants