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

Challenge 0: use different package instead of react-json-view #90

Closed
technophile-04 opened this issue Sep 20, 2023 · 2 comments
Closed

Comments

@technophile-04
Copy link
Collaborator

Description :

It seems that the package we are using to show IPFS upload JSON data on UI seems not be maintained anymore and has some problem with SSR

We got away with the issue of SSR by using next/dynamic import:

const DynamicReactJson = dynamic(import("react-json-view"), { ssr: false });

As it was suggested here -> mac-s-g/react-json-view#121 (comment)

But it seems that in the latest very next version it breaks #89

Alternative which I found : https://viewer.textea.io/ but tells you to add @mui/material @emotion/react @emotion/styled as dependencies :( don't know if its worth it

@rin-st
Copy link
Member

rin-st commented Mar 28, 2024

Hey Shiv,
use client + React.lazy fixed the problem.

can I close this issue?

@rin-st
Copy link
Member

rin-st commented May 28, 2024

Closing this for now, since SSR problem is fixed, and react-json-view is still popular and enough for us. Will reopen later if needed

@rin-st rin-st closed this as completed May 28, 2024
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