SkeletonUI icon indicating copy to clipboard operation
SkeletonUI copied to clipboard

#36: Two SkeletonForEach in a LazyVGrid causes duplicate IDs

Open Viktor-by opened this issue 1 year ago • 0 comments

Issue Link :link:

https://github.com/CSolanaM/SkeletonUI/issues/36

Goals :soccer:

Enabled LazyVGrid to contain multiple SkeletonForEach with loading state

Implementation Details :construction:

  • Introduced new extension for View that allows to transform a view only when a condition is true
  • Set a random id for a skeleton view in SkeletonForEach to make sure there is no 2 or more skeleton views with the same id

Testing Details :mag:

No new tests added

Viktor-by avatar Jul 31 '24 16:07 Viktor-by