LearnNewsExamplesServices
Frontmatter
id6763
titledata.Store: load() => enhance the catch part
stateClosed
labels
enhancement
assignees[]
createdAtJun 11, 2025, 12:11 PM
updatedAtJun 11, 2025, 12:53 PM
githubUrlhttps://github.com/neomjs/neo/issues/6763
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJun 11, 2025, 12:53 PM

data.Store: load() => enhance the catch part

Closed v9.12.0 enhancement
tobiu
tobiu commented on Jun 11, 2025, 12:11 PM

Neo.Xhr.promiseJson(opts).catch(err => {/*...*/}).then(data => {/*...*/})

The "problem" here is the way how promises got implemented in JS:

If we enter the catch part, then() will still get triggered.

tobiu added the enhancement label on Jun 11, 2025, 12:11 PM
tobiu referenced in commit f6d9d96 - "data.Store: load() => enhance the catch part #6763" on Jun 11, 2025, 12:52 PM
tobiu closed this issue on Jun 11, 2025, 12:53 PM