MCPcopy Create free account
hub / github.com/ember-learn/ember-api-docs / hasStaleResults

Method hasStaleResults

app/services/search.js:55–60  ·  view source on GitHub ↗

* Whenever the version changes in service:project, the results in this * service become stale. Presenting them any further could allow the user to * undo their version change by clicking a stale link. * @returns {boolean}

()

Source from the content-addressed store, hash-verified

53 * @returns {boolean}
54 */
55 hasStaleResults() {
56 return (
57 this.#lastQueriedProjectVersion !== null &&
58 this.projectVersion !== this.#lastQueriedProjectVersion
59 );
60 }
61
62 clearResults() {
63 this.results = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected