Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you memo/save the positions? #1

Open
biapar opened this issue Sep 4, 2024 · 1 comment
Open

Do you memo/save the positions? #1

biapar opened this issue Sep 4, 2024 · 1 comment

Comments

@biapar
Copy link

biapar commented Sep 4, 2024

Do you memo/save the positions?

@olliethedev
Copy link
Owner

For the demo im using localStorage to persist the positions between page reloads. See this.

In production, you would want to save the position in a db server side behind auth. I think that will also allow you to get rid of the lazyloading of the SwapLayout, potentially making the rendering of the dash faster as you can get the positions at render time before serving the page to the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants