457
Views
7
Comments
Reduce of empty array with no initial value error on Scroll
Question

Hi,

I'm currently having strange error on my console when scrolling the page on mobile app:
Uncaught TypeError: Reduce of empty array with no initial value
    at Array.reduce (<anonymous>)
    at t.getCurrentScrollViewerState (virtualized-scroll-viewer.js:708)
    at virtualized-scroll-viewer.js:399

I'm a bit confused with it. Any suggestions of how to identify source of the problem are welcomed.

Thanks.


2020-02-28 09-46-54
Eduardo Jauch

Hi Mykola,

Never encountered this error. Being a JavaScript error and by the place and trigger, it is something that is happening in automatic generated code.

What do you have in this screen?

Cheers.


2021-05-05 13-05-18
Mykola (Nick) Tkachenko

Hi Eduardo,

There are lots of things on that screen including tabs and lists. But I've noticed that this error only happens if I start scrolling while the page is not fully loaded (some data for lists is still be fetching). If I wait till all is done - no error.

2020-02-28 09-46-54
Eduardo Jauch

Hum...

This is interesting.
Seems like a bad "interaction" that is not being taking into account by the automatic code.

If it is this, it would be a bug.

I would open a ticket with support, sending them a small test app that can reproduce the problem.

Cheers.

UserImage.jpg
Liyang Wan

Hi, may i know is any finding for this? i encounter same problem in Outsystems 11. 

2020-06-18 21-20-50
Daan van Hoeke

We were experiencing the same issue  (on a screen with accordion items in a list) and were able to solve it by setting disable-virtualization = True on the list 


2020-02-27 19-30-05
Eric Patton

This is the answer that solved a similar issue we were having with the accordion in a popup. Thank you!

2024-11-07 03-28-42
Stuart Harris
Champion

Thank you Dan! This solved the problem for us too. I wish I could mark your answer as the solution!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.