N
N
Nikita2021-01-27 15:01:48
React
Nikita, 2021-01-27 15:01:48

How to save canvas state when leaving the page in React?

Suppose there is an abstract canvas with some state, its state is saved every five seconds, but what if the user decides to leave the page, how to save it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Derkach, 2021-01-28
@skeevy

If we allow and talk about an abstract canvas, then let's say we take abstract data and put it in the same abstract localStorage/SessionStorage/state manager (mobx/redux)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question