V2 Trades page not loading

Gainium App V2 Loads and then immediately crashes (same thing on both android and desktop using brave, with or without adblock) with “unexpected error”:

Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at getRootForUpdatedFiber (https://app.gainium.io/assets/index-Ds6S5vo4.js:47:30791)
    at enqueueConcurrentHookUpdate (https://app.gainium.io/assets/index-Ds6S5vo4.js:47:30184)
    at dispatchSetStateInternal (https://app.gainium.io/assets/index-Ds6S5vo4.js:47:67970)
    at dispatchSetState (https://app.gainium.io/assets/index-Ds6S5vo4.js:47:67543)
    at setRef (https://app.gainium.io/assets/index-Ds6S5vo4.js:7028:84917)
    at https://app.gainium.io/assets/index-Ds6S5vo4.js:7028:85315
    at Array.map (<anonymous>)
    at https://app.gainium.io/assets/index-Ds6S5vo4.js:7028:85299
    at safelyDetachRef (https://app.gainium.io/assets/index-Ds6S5vo4.js:47:105674)
    at commitDeletionEffectsOnFiber (https://app.gainium.io/assets/index-Ds6S5vo4.js:47:111462)

Component stack:
    at button (<anonymous>)
    at https://app.gainium.io/assets/index-Ds6S5vo4.js:7041:40214
    at https://app.gainium.io/assets/index-Ds6S5vo4.js:7130:73156
    at Provider (https://app.gainium.io/assets/index-Ds6S5vo4.js:7041:36434)
    at CheckboxProvider (https://app.gainium.io/assets/index-Ds6S5vo4.js:7130:72520)
    at https://app.gainium.io/assets/index-Ds6S5vo4.js:7130:73956
    at Checkbox (https://app.gainium.io/assets/index-Ds6S5vo4.js:7130:75831)
    at div (<anonymous>)
    at header (https://app.gainium.io/assets/index-Ds6S5vo4.js:7130:108400)
    at th (<anonymous>)
    at SortableContext (https://app.gainium.io/assets/index-Ds6S5vo4.js:7125:44240)
    at tr (<anonymous>)
    at thead (<anonymous>)
    at table (<anonymous>)
    at DndContext (https://app.gainium.io/assets/index-Ds6S5vo4.js:7125:29299)
    at div (<anonymous>)
    at div (<anonymous>)
    at div (<anonymous>)
    at DataTableComponent (https://app.gainium.io/assets/index-Ds6S5vo4.js:7130:101689)
    at div (<anonymous>)
    at OpenOrdersWidget (https://app.gainium.io/assets/index-Ds6S5vo4.js:7349:287662)
    at div (<anonymous>)
    at div (<anonymous>)
    at div (<anonymous>)
    at https://app.gainium.io/assets/index-Ds6S5vo4.js:7041:40214
    at Presence (https://app.gainium.io/assets/index-Ds6S5vo4.js:7041:82007)
    at https://app.gainium.io/assets/index-Ds6S5vo4.js:7151:473069
    at https://app.gainium.io/assets/index-Ds6S5vo4.js:7151:485080
    at div (<anonymous>)
    at https://app.gainium.io/assets/index-Ds6S5vo4.js:7041:40214
    at Provider (https://app.gainium.io/assets/index-Ds6S5vo4.js:7041:36434)
    at https://app.gainium.io/assets/index-Ds6S5vo4.js:7151:471642
    at https://app.gainium.io/assets/index-Ds6S5vo4.js:7151:473868
    at div (<anonymous>)
    at div (<anonymous>)
    at Widget (https://app.gainium.io/assets/index-Ds6S5vo4.js:7282:189646)
    at div (<anonymous>)
    at MotionDOMComponent (https://app.gainium.io/assets/index-Ds6S5vo4.js:7028:12881)
    at div (<anonymous>)
    at WidgetContainer (https://app.gainium.io/assets/index-Ds6S5vo4.js:7539:88888)
    at main (<anonymous>)
    at div (<anonymous>)
    at div (<anonymous>)
    at div (<anonymous>)
    at div (<anonymous>)
    at MainLayoutContent (https://app.gainium.io/assets/index-Ds6S5vo4.js:7539:81675)
    at MainLayout (https://app.gainium.io/assets/index-Ds6S5vo4.js:7539:81578)
    at Trading (https://app.gainium.io/assets/index-Ds6S5vo4.js:8056:1725)
    at ProtectedRoute (https://app.gainium.io/assets/index-Ds6S5vo4.js:7020:4541)
    at RenderedRoute (https://app.gainium.io/assets/index-Ds6S5vo4.js:50:4196)
    at Routes (https://app.gainium.io/assets/index-Ds6S5vo4.js:50:9143)
    at App (https://app.gainium.io/assets/index-Ds6S5vo4.js:8080:34559)
    at ExchangeDataProvider (https://app.gainium.io/assets/index-Ds6S5vo4.js:7084:11161)
    at LiveUpdateProvider (https://app.gainium.io/assets/index-Ds6S5vo4.js:7192:37277)
    at PouchDBSyncProviderInner (https://app.gainium.io/assets/index-Ds6S5vo4.js:8080:55808)
    at PouchDBSyncProvider (https://app.gainium.io/assets/index-Ds6S5vo4.js:8080:55721)
    at QueryClientProvider (https://app.gainium.io/assets/index-Ds6S5vo4.js:2:54468)
    at PersistQueryClientProvider (https://app.gainium.io/assets/index-Ds6S5vo4.js:2:57512)
    at ReactQueryProvider (https://app.gainium.io/assets/index-Ds6S5vo4.js:40:2210)
    at GoogleOAuthProvider (https://app.gainium.io/assets/index-Ds6S5vo4.js:7580:31117)
    at AuthEnvWrapper (https://app.gainium.io/assets/index-Ds6S5vo4.js:7602:6530)
    at AuthProvider (https://app.gainium.io/assets/index-Ds6S5vo4.js:8080:41976)
    at Router$1 (https://app.gainium.io/assets/index-Ds6S5vo4.js:50:8233)
    at BrowserRouter (https://app.gainium.io/assets/index-Ds6S5vo4.js:50:18897)
    at AppErrorBoundary (https://app.gainium.io/assets/index-Ds6S5vo4.js:8097:58684)

Hello! Thank you for reporting this issue.

We have received your report regarding the crash on the V2 Trades page (React error #185) on both Android and Desktop browsers. Our development team is currently looking into this, and we will update you shortly.

Thanks for the detailed report, Leon — that error log was exactly what we needed to track this down quickly.

The Trades page was crashing whenever it was switched to the table layout and you had open trades. The card layout kept working, which is why it looked intermittent. We’ve fixed the underlying issue and the fix is now live.

Please refresh the app (a hard refresh, or clearing the site cache, helps if the old version lingers) and the Trades page should load normally again in both the table and card layouts. Apologies for the disruption, and thanks for your patience! :pray:

Thank you, it works!