FlutterFlow / flutterflow-issues

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

Infinite Loading when there is less entries than rows #2978

Open amatveeva opened 4 months ago

amatveeva commented 4 months ago

Has your issue been reported?

Current Behavior

When creating a dataTable, the data is dynamically loaded via an API call. This will result in the dataTable having different amounts of data in different parts of the app. When there are less data entries than rows, it displays infinite loading.

Expected Behavior

to only load the data provided, and stop the infinite loading

Steps to Reproduce

  1. Make DataTable
  2. set the Rows to a number bigger than how many entries you have
  3. whenever u go to the last page, there will be infinite loading

Reproducible from Blank

Bug Report Code (Required)

there is no option to get the bug report code

Context

I wanted a datatable without infinite loading

Visual documentation

https://github.com/FlutterFlow/flutterflow-issues/assets/64736522/af9c4e17-1a7c-4e34-a7ef-afb8b2230118

here is how there is no option to get the bug report code image

Additional Info

I have fixed this problem in my program by setting the number of rows dynamically to how many entries the API returns

Environment

- FlutterFlow version: newest
- Platform: Windows 10
- Browser name and version:
- Operating system and version affected:

General

Relative to the time the changes were made, data was lost within

When following my steps to reproduce, data loss happens

msusviela commented 3 months ago

I was able to reproduce the issue, I will send it to the ENG team so they can work on this!

leighajarett commented 3 months ago

Hi there! Can you set the number of rows to be a variable that actually represents the number of rows from the dynamic value (i.e. number of items in a list returned from an API call)?

Maybe I am misunderstanding but I would expect that is how this should be used