You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Recent Searches example given in the how-to guides uses .reverse() which reverses the array in place. This means on every render (ie. each letter typed) the order of recent searches gets flipped. An easy way around this is to use .toReversed() to create a new instance of the array in reverse order, with the caveat that this is only supported in browsers from ~2023 onwards.
The text was updated successfully, but these errors were encountered:
The Recent Searches example given in the how-to guides uses
.reverse()
which reverses the array in place. This means on every render (ie. each letter typed) the order of recent searches gets flipped. An easy way around this is to use.toReversed()
to create a new instance of the array in reverse order, with the caveat that this is only supported in browsers from ~2023 onwards.The text was updated successfully, but these errors were encountered: