-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Reports #20
Conversation
src/Reports/index.ts
Outdated
} | ||
|
||
generateReport(type: ReportProcessorType, filter?: ReportFilter) { | ||
_generateReport(type: 'balanceSheet' | 'cashflow', filter?: ReportFilter) { | ||
return this._root._query( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return this._root._query( | |
return this._query( |
So it also takes the pool id into account when caching the observable
src/Reports/index.ts
Outdated
} | ||
[type, filter?.from, filter?.to, filter?.groupBy], | ||
() => | ||
defer(() => { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Description
This pull request...
#