Skip to content

Loops within Action Callback Parameters not functioning correctly #5947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 2 tasks
PMFlis opened this issue Jun 5, 2025 · 4 comments
Open
1 of 2 tasks

Loops within Action Callback Parameters not functioning correctly #5947

PMFlis opened this issue Jun 5, 2025 · 4 comments

Comments

@PMFlis
Copy link

PMFlis commented Jun 5, 2025

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

I am aware that you have released the patch (6.0.5) to resolve this issue, I have the newest version of flutterflow but I still have error on one of my loops. I have tried to rebuild the loop but the error is still there. I have on tap action that opens dialog box and I pass parameter to this dialog box that is a callback action, and there I have the loop that has an error. The loops used to work previously. When I copy this loop and put it as an action on page load the error disappears so it is only in this callback action.

Expected Behavior

Working loop as it was working before.

Steps to Reproduce

  1. Go to the "ReviewsPage"
  2. In the RowDropDown there is a container with action to open a dialog box which is a custom drop down menu.
  3. There is a parameter to be passed to the dialog box which is an Action, when user taps on dropdown menu a callback is executed, and there is an action chain there with the loop.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4Ki8rlvI9grsNA0LrtbcdviiovJnI/a7golsF+SQI0fIjtG7YMS8+kMxJVXemndGNEL2GjnTo0+aHFhePyA+UqJQqrRYQ7/pNbVQH/eFiWVraPCZeeX3x8P8FJJVy+0rSO2hEkBNRuclEu1ziUfOm9c3brHq77NUYgAP6KWYXIn3uqQ0SLb3kNh1JWeC/v

Visual documentation

Image

Environment

- FlutterFlow version: 6.0.5 (4 June)
- Platform: web
- Browser name and version: chrome 136.0.7103.114
- Operating system and version affected: macOs

Additional Information

The loop was working correctly before. This is crucial to the project as it allows changing product displayed on the page. I have deadline with my client next week to deliver the project and I cannot do that with this loop working correctly.

@PMFlis PMFlis added the status: needs triage A potential issue that has not been confirmed as a bug. label Jun 5, 2025
@Juansarmi Juansarmi self-assigned this Jun 5, 2025
Copy link
Collaborator

Hey! I’m sorry you’re still experiencing this issue. It seems it was already addressed in the latest updates. I’ll check with the team regarding your specific case and will get back to you as soon as I have news.
Best regards.

@Juansarmi Juansarmi removed the status: needs triage A potential issue that has not been confirmed as a bug. label Jun 5, 2025
Copy link
Collaborator

Your case is currently under investigation.
As a workaround, we recommend switching to the other loop type — the While Loop — and using an app or page state variable to iterate over the list.
I’ll share more information as soon as I have an update.
Best regards!

@carlos-itera
Copy link

Hello, I have same error. When trying to use a conditional action inside of a loop over a List. And also when I have a Loop inside another Loop. When I try to use the current item of the list it says is not under scope.

Image

@PMFlis
Copy link
Author

PMFlis commented Jun 6, 2025

Hi @Juansarmi, thank you for your reply and investigating further this error. I will try in the meanwhile using the while loop. Thanks

@linear linear bot changed the title The new version of FF with patch to fix the loop problem doesn't work Loops within Action Callback Parameters not functioning correctly Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants