Back

[SOLVED] Error to the run the branch feat-offline-support-refactor

  • 0
  • Flutter
hortigado
10 May, 2023, 00:40

Hi, i get this error to the run the app with it branch.

TL;DR
Title: [SOLVED] Error running branch feat-offline-support-refactor Messages: User had an error running the branch feat-offline-support-refactor, but managed to fix it by modifying a line of code. User also had some queries about caching and modifying data by different users in the same team. Solution: The error was resolved by modifying a line of code.
Drake
10 May, 2023, 01:42

You're alraedy using sembast or sqlite?

hortigado
10 May, 2023, 01:44

No. I had sqlite but I had already deleted it

hortigado
10 May, 2023, 01:45
hortigado
10 May, 2023, 01:46

Here the error is generated when using the two libraries

hortigado
10 May, 2023, 01:49

maybe one of the libraries updated and added the same class

Drake
10 May, 2023, 01:51

Maybe...

Drake
10 May, 2023, 21:07

so i modified that line to:

TypeScript
import 'package:sqflite_common_ffi/sqflite_ffi.dart' hide Database;

and was able to get things running again

hortigado
11 May, 2023, 23:09

Hello again, yes that fixes the error. I was testing the offline mode and it works very well. I have some queries, how could a query save all the information without having a cache limit or by not placing "setOfflineCacheSize" is this achieved? Another query, Does it support the modification of the same data by different users of the same "Team" ?

Drake
12 May, 2023, 01:05

There's a default cache size. I think it's 40mb or something

Drake
12 May, 2023, 01:07

The server will reject conflicting requests if a document was updated after a write operation was queued

hortigado
12 May, 2023, 01:12

[SOLVED] Error to the run the branch feat-offline-support-refactor

hortigado
12 May, 2023, 01:13

ok friend thanks, I'll keep testing the functionality. Greetings

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more