Skip to content

Commit f0eab8c

Browse files
committed
perf: avoid checking for page changes when publishing
1 parent 83684ac commit f0eab8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/models/book.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class BookNotifier extends StateNotifier<Book> {
3434
set book(Book book) => state = book;
3535

3636
@override
37-
bool updateShouldNotify(Book old, Book current) => old != current;
37+
bool updateShouldNotify(Book old, Book current) => true;
3838

3939
/// Creates a new page.
4040
Future<Page> createPage(

0 commit comments

Comments
 (0)