Open Stuart88 opened 2 weeks ago
@Stuart88 This is only required if you wish to use JS Interop Streaming which allows for larger amounts of data to be stored in local storage, see https://github.com/Blazored/LocalStorage?tab=readme-ov-file#using-js-interop-streaming for the details.
When using interactive components in server-side apps JS Interop calls are limited to the configured SignalR message size (default: 32KB). Therefore when attempting to store or retrieve an object larger than this in LocalStorage the call will fail with a SignalR exception.
The following streaming implementation can be used to remove this limit (you will still be limited by the browser).
However, this change is still pending a release to be published to NuGet so unfortunately isn't available yet in v4.5.0 and will need @chrissainty to publish this before it can be used via the package.
After spending quite a lot of time with this, I think I'm correct in saying that the ReadMe instruction to add the
Blazored.LocalStorage.js
script to one's project is now obsolete?Not a bug as such, but a ReadMe bug.
Great library anyway, thanks!