We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b00f2 commit 6fb0ecbCopy full SHA for 6fb0ecb
awesome_dashboard/static/src/dashboard.js
@@ -11,7 +11,12 @@ class AwesomeDashboard extends Component {
11
12
setup() {
13
this.action = useService("action");
14
- this.statistics = useState(useService("awesome_dashboard.statistics"));
+ this.statsService = useService("awesome_dashboard.statistics");
15
+
16
+ onWillStart(async () => {
17
+ this.statistics = await this.statsService.loadStatistics();
18
+ });
19
+ console.log(this.statistics);
20
}
21
22
openCustomers() {
0 commit comments