Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reports #20

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Reports #20

wants to merge 13 commits into from

Conversation

sophialittlejohn
Copy link
Collaborator

Description

This pull request...

#

}

generateReport(type: ReportProcessorType, filter?: ReportFilter) {
_generateReport(type: 'balanceSheet' | 'cashflow', filter?: ReportFilter) {
return this._root._query(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return this._root._query(
return this._query(

So it also takes the pool id into account when caching the observable

}
[type, filter?.from, filter?.to, filter?.groupBy],
() =>
defer(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

doesn't need the defer here. The callback being called won't immediately fire off requests.

Copy link
Collaborator

Choose a reason for hiding this comment

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

hinted at by the fact that the callback inside defer isn't an async function

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