FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

Editing persistent app state temporarily changes document queried from backend #4356

Closed brnchr0m closed 1 day ago

brnchr0m commented 1 month ago

Can we access your project?

Current Behavior

  1. I am setting an app state variable to be equal to a value from a backend document
  2. I then open a bottom sheet where I edit this app state variable, and then dismiss it by swiping down
  3. The backend document, in the run mode, test mode as well as debug variables in test mode appears to have changed with the changes of the app state variable, even though no action is taken to adjust the document AND the document is unchanged when I look at the firebase storage

Expected Behavior

I expect the document queried from the backend to not change when I edit an app state variable set from a variable from that document

Steps to Reproduce

  1. Create a custom data type that exists both in a document in a backend and as a persistent app state variable
  2. Set app state variable to the field from the backend document
  3. Open a bottom sheet where you can adjust the custom data type
  4. Dismiss the bottom sheet, check if backend document appears to have changed (won't change in firebase but will in the editor / test mode / run mode)

Reproducible from Blank

Bug Report Code (Required)

ITFfjPHq05NOtbwB176Ja/par2QUHEMcTL4zlO1HcxAYGO/yPbJ/dsnObhJWXfKoY1NhHGGZuFoH3PDoiYfMG8IVEwyrG5x/ypNyEDuWf3q8RaqPC6qzPHYlAcFhJh2l5MKJpBJ7AMpaLS0S2WWYJ+6vHx7fGZu/Zwh9f6PHaOI=

Visual documentation

Can't because I have since fixed the issue by clearing the cache when I dismiss the bottom sheet

Environment

- FlutterFlow version: 5.0.7
- Platform:
- Browser name and version:
- Operating system and version affected:

Additional Information

No response

Alezanello commented 1 month ago

Hello!

Could you let me know which specific widget in your project is triggering the action? This will help me replicate the issue in a new project and identify any potential errors.

brnchr0m commented 1 month ago

Hello,

It's in the startWorkoutComponent, when I change the "exercise" say adding a set, or replacing it, it also appears to have changed the backend document it draws it from. In the current version it is fixed by clearing the cache after entering a workout though

Best, Robin

On Thu, 24 Oct 2024 at 13:28, Alezanello @.***> wrote:

Hello!

Could you let me know which specific widget in your project is triggering the action? This will help me replicate the issue in a new project and identify any potential errors.

— Reply to this email directly, view it on GitHub https://github.com/FlutterFlow/flutterflow-issues/issues/4356#issuecomment-2435158758, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE7XMZ54SOQMU3ITUCSCYLDZ5DRVHAVCNFSM6AAAAABQKKH34OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZVGE2TQNZVHA . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 3 weeks 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.

Alezanello commented 6 days ago

Hello,

I sincerely apologize for the delayed response. Would it be possible for you to replicate this issue in a new blank project with just the necessary actions to reproduce it? Unfortunately, I haven’t been able to reproduce it on my end.

Alternatively, has this issue already been resolved?

Thank you for your understanding, and I appreciate your help in troubleshooting this!

Alezanello commented 1 day ago

Closing this issue since we haven't heard back from you. If you are still facing the problem please submit a new issue. Have a great day!