LearnNewsExamplesServices
Frontmatter
id9161
title[DevIndex] Fix Redundant Store Load via createAllItems hook
stateClosed
labels
bugaiperformance
assigneestobiu
createdAtFeb 15, 2026, 3:57 AM
updatedAtFeb 15, 2026, 4:00 AM
githubUrlhttps://github.com/neomjs/neo/issues/9161
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 15, 2026, 4:00 AM

[DevIndex] Fix Redundant Store Load via createAllItems hook

Closed v12.0.0 bugaiperformance
tobiu
tobiu commented on Feb 15, 2026, 3:57 AM

The allItems backup collection created during filtering inherits the autoLoad: true config from the main store, causing a redundant data fetch. This fix introduces a protected createAllItems(config) hook in Neo.collection.Base, which is then overridden in Neo.data.Store to explicitly set autoLoad: false. This ensures clean separation of concerns and prevents the performance regression.

tobiu added the bug label on Feb 15, 2026, 3:57 AM
tobiu added the ai label on Feb 15, 2026, 3:57 AM
tobiu added the performance label on Feb 15, 2026, 3:57 AM
tobiu referenced in commit 2db4b73 - "fix(data): Prevent redundant store load when filtering via createAllItems hook (#9161)" on Feb 15, 2026, 3:59 AM
tobiu assigned to @tobiu on Feb 15, 2026, 3:59 AM
tobiu
tobiu Feb 15, 2026, 4:00 AM

Input from Gemini 3 Pro:

✦ Implemented the fix by introducing a createAllItems(config) hook in Neo.collection.Base. This hook is overridden in Neo.data.Store to explicitly set config.autoLoad = false for the backup collection. This prevents the redundant data fetch when filtering for the first time.

tobiu closed this issue on Feb 15, 2026, 4:00 AM