FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
115 stars 19 forks source link

Supabase database query not updated when navigate back when deploy using GitHub #3648

Open Jeffcyw opened 3 weeks ago

Jeffcyw commented 3 weeks ago

Can we access your project?

Current Behavior

I have a list view querying to supabase database, on Github deployment (without changing any code at all), when I navigate back after updating my database, the database won't be updated nor re-query to the new database update.

Expected Behavior

I have a list view querying to supabase database, on normal deployment, it works fine where when I navigate back after updating my database, it will automatically re-query the database and return the updated value.

Steps to Reproduce

  1. Deploy a version directly from Flutterflow and deploy another version from Github (without changing anything in the code)
  2. In the app, go to Transaction page and edit any transaction record in it.
  3. Compare the 2 app difference. You will see that everything works fine when you deploy from Flutterflow (database automatically updated on back navigation), whereas deployment from Github will not have the data updated.

Reproducible from Blank

Bug Report Code (Required)

IT4WhsmA8YxJpbxE1s+NdcZR/WAWHEwlaOcrm8N9cw0aF5fpPaYPXfikSEpWZ9+kTHxcL2H8sGMd/tLKvc7qA+UoMkydfIBx1YdhEDriZEKiaJ+bBqjhTnBSQJpJJVyP152jmCUkOsBYL04O2EymJ9nKSj/rJpzbDlcNGf/+D9vA+VmqQ0SLb3kNh1JWeC/v

Visual documentation

https://github.com/user-attachments/assets/c778b896-093b-41e3-9e56-085cda57b298

Environment

- FlutterFlow version: 4.1.81
- Platform: Web
- Browser name and version: Chrome
- Operating system and version affected: Windows

Additional Information

No response

Alezanello commented 3 weeks ago

Hello!

It's quite strange that the behavior changes based solely on the deployment. It should remain consistent unless there are specific commands in the compile process or something in the GitHub actions that could alter the app's behavior.

Sometimes, using "Navigate Back" might not trigger a new query or refresh an existing streaming query. I recommend trying "Navigate To" instead, selecting the same page, to see if that resolves the issue.

Jeffcyw commented 3 weeks ago

I've created my apps with the navigate back function so that it works well with Android back button too. Everything is fine as it is when I deploy from Flutterflow. However, just with deploying in Github, without changing a single thing, these queries doesn't work anymore. Would you able to give it a try in my app and you'll see this issue happening. Thanks.

Jeffcyw commented 2 weeks ago

Do we have any update on this? Please

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

Jeffcyw commented 6 days ago

Following up on this...