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 967bac6 commit a3a0eacCopy full SHA for a3a0eac
lib/pages/article/components/post_store.dart
@@ -29,13 +29,13 @@ class PostStorage with ChangeNotifier {
29
loadingState = LoadingState.inProgress;
30
storage
31
.article(_id)
32
- .mapRight(
33
- (right) => ParsedPost(
+ .mapRightAsync(
+ (right) async => ParsedPost(
34
id: right.id,
35
title: right.title,
36
author: right.author,
37
publishDate: right.publishDate,
38
- parsedBody: htmlAsParsedJson(right.body),
+ parsedBody: await compute(htmlAsParsedJson, right.body),
39
),
40
)
41
.either((left) {
0 commit comments