CURD operation on DriftIsolate Reference is getting stuck when the app is opened. #2969
Unanswered
venkadesh-p
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the 2 DriftIsolate db references lets say DB1 and DB2.
DB1 contains the tables created using pre defined Model classes which extends
Table
.DB2 contains the tables created using SQL queries(like
CREATE TABLE
).Both DB are created and connected from main and some other isolates.
As per documentation, I am sending connectPort to connect the db instances inside the other isolates using
DriftIsolate.fromConnectPort
.It works fine until I background the app for some time and open it again.
If I go background and open the app after sometime, I am not able to perform any CURD operation on DB1. Basically it is not returing any response. For Example,
select(myTable).get()
is not returning any response and it got stuck for ever.But I am able to do CURD operation on DB2 using SQL queries like
SELECT *
.Can anyone help me to solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions