Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Client/Server communcation (SharedState) with a map or array with large dat

Mario Bertschler
5 years ago Jun 23, 2016 12:07am
Johannes Dahlström
5 years ago Jun 23, 2016 12:06pm

Yes, unfortunately shared state does not support deltas. You can work around it by using RPC calls instead, eg. something like

interface MyDiffRpc extends ClientRpc {
    public void sendWholeThing(List<Foo> list);
    public void updateElem(int i, Foo newElem);
    public void insertElem(int i, Foo insertedElem);
    public void removeElem(int i);
Mario Bertschler
5 years ago Jun 23, 2016 1:49pm