Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fix no refetching in background
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Apr 13, 2024
1 parent 6bf5349 commit d5fb7b0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
3 changes: 2 additions & 1 deletion dev-server-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dev-server-frontend/src/ExampleContentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export const ExampleContentView = () => {
})
.then((r) => r.data.dev_package_example),
{
refetchInterval: 5_000,
refetchIntervalInBackground: true,
refetchOnWindowFocus: true,
retry: false,
}
)
Expand Down
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"dependencies": {
"@edge-runtime/primitives": "^4.1.0",
"@hono/node-server": "^1.8.2",
"@tscircuit/builder": "^1.5.54",
"@tscircuit/react-fiber": "latest",
"@tscircuit/builder": "^1.5.53",
"@tscircuit/react-fiber": "^1.0.22",
"archiver": "^7.0.1",
"axios": "^1.6.7",
"better-sqlite3": "^9.4.3",
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/example-project/src/MyCircuit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import "@tscircuit/react-fiber"

export const MyCircuit = () => (
<board width="40mm" height="40mm" center_x={0} center_y={0}>
<resistor name="R2" resistance="20kohm" footprint="1210" />
<resistor name="R1" resistance="20kohm" footprint="1210" />
</board>
)

0 comments on commit d5fb7b0

Please sign in to comment.