IgniteUI / igniteui-blazor

Ignite UI for Blazor component library packs 35+ native Blazor UI Controls with 60+ high-performance Charts designed for any Blazor WASM or Server-side app scenario.
https://www.infragistics.com/products/ignite-ui-blazor
3 stars 3 forks source link

[IgbGrid] state-persistence - Reload causes ExpectedStartOfValueNotFound #135

Open mddifilippo89 opened 4 weeks ago

mddifilippo89 commented 4 weeks ago

In Blazor WASM the error is explicit (See screenshot below) In Blazor Server the issue will lead to a different console error but the app will throw a similar error:

JsonReaderException: 'e' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.

WASM

  1. Navigate to this sample https://www.infragistics.com/blazor-client/grids/grid/state-persistence-main https://github.com/IgniteUI/igniteui-blazor-examples/tree/vnext/samples/grids/grid/state-persistence-main
  2. Run and click the Reset button

Server:

  1. Download attached Server sample IgniteIgbGridSample2 (2).zip

  2. Run sample, click Fetch Data in the nav tree

  3. Move a column to a different position

  4. Navigate away from the sample by clicking Counter or Home

  5. Click back to Fetch Data

  6. Click Restore Grid State

Here is a comparison of the two WASM / Server side by side (WASM left, Server Right) including the server's stacktrace image