Skip to content

Commit 303714d

Browse files
authored
fix(explorer): enable table data refetch for local explorer (#3627)
1 parent 98fc29d commit 303714d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/wicked-bags-sip.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@latticexyz/explorer": patch
3+
---
4+
5+
Table data refetching is now enabled for locally run Explorer instances.

packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/Explorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function Explorer() {
1919
const { worldAddress } = useParams();
2020
const { id: chainId } = useChain();
2121
const indexer = indexerForChainId(chainId);
22-
const [isLiveQuery, setIsLiveQuery] = useState(false);
22+
const [isLiveQuery, setIsLiveQuery] = useState(indexer.type === "sqlite");
2323
const [{ pageSize }, setPagination] = usePaginationState();
2424
const [query, setQuery] = useSQLQueryState();
2525
const [selectedTableId] = useQueryState("tableId");

0 commit comments

Comments
 (0)