You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the pervious versions of this component the src property could be set to undefined which is handy in my case as I use this as a debug tool for seeing the internals of my React page. Could we add the undefined type to src? Or am I missing something on how to use this component correctly?
importReactJsonfrom'@microlink/react-json-view';import{useEffect,useState}from'react';constFoo=()=>{const[value,setValue]=useState<string>();useEffect(()=>{setTimeout(()=>{setValue('hi');},1000);// Simulate a delay},[]);return<ReactJsonsrc={value}/>;};exportdefaultFoo;
Activity
Dhyrkas commentedon Jul 14, 2025
try