Skip to content

Commit

Permalink
released v1.8.3 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 1, 2023
1 parent d206c35 commit 5faf4fb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uiw/react-json-view",
"version": "1.8.2",
"version": "1.8.3",
"description": "JSON viewer for react.",
"main": "cjs/index.js",
"module": "esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "1.8.2",
"version": "1.8.3",
"packages": ["core", "www"]
}
4 changes: 2 additions & 2 deletions www/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "website",
"version": "1.8.2",
"version": "1.8.3",
"preview": true,
"scripts": {
"build": "kkt build",
Expand All @@ -9,7 +9,7 @@
},
"dependencies": {
"@uiw/react-color-colorful": "^1.3.2",
"@uiw/react-json-view": "1.8.2",
"@uiw/react-json-view": "1.8.3",
"@uiw/react-markdown-preview-example": "^1.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
20 changes: 10 additions & 10 deletions www/src/example/default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ export function Example() {
const [collapsed, setCollapsed] = useState<JsonViewProps<object>['collapsed']>(true);

const [src, setSrc] = useState({ ...example });
// useEffect(() => {
// const loop = () => {
// setSrc(src => ({
// ...src,
// timer: src.timer + 1
// }))
// }
// const id = setInterval(loop, 1000)
// return () => clearInterval(id)
// }, []);
useEffect(() => {
const loop = () => {
setSrc((src) => ({
...src,
timer: src.timer + 1,
}));
};
const id = setInterval(loop, 1000);
return () => clearInterval(id);
}, []);

return (
<Fragment>
Expand Down

0 comments on commit 5faf4fb

Please sign in to comment.