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

Remove unhelpful MobX compuedFn CLI errors when SSRing #1185

Closed
jonator opened this issue Dec 29, 2022 · 0 comments
Closed

Remove unhelpful MobX compuedFn CLI errors when SSRing #1185

jonator opened this issue Dec 29, 2022 · 0 comments

Comments

@jonator
Copy link
Member

jonator commented Dec 29, 2022

Problem

We use MobX for our reactive state management, however it doesn't want to cooperate when next.js does first-pass server-side rendering.

The console is cluttered with the following error repeated:
@osmosis-labs/web: invoking a computedFn from outside an reactive context won't be memoized, unless keepAlive is set

Proposed Solution

Make it go away. Perhaps we could take the approach in this issue. Bonus points if you're able to configure MobX to do SSR without writing our own computedFn wrapper. 👍

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

1 participant