Skip to content

Commit e749474

Browse files
Fix query client resolver
1 parent 6637045 commit e749474

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "egraph-visualizer",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/saulshanabrook/egraph-visualizer.git"

src/Visualizer.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,11 @@ export function render({ model, el }: { el: HTMLElement; model: AnyModel }) {
508508
export function mount(element: HTMLElement): { render: (egraphs: string[]) => void; unmount: () => void } {
509509
const root = createRoot(element);
510510
function render(egraphs: string[]) {
511-
root.render(<Visualizer egraphs={egraphs} />);
511+
root.render(
512+
<QueryClientProvider client={queryClient}>
513+
<Visualizer egraphs={egraphs} />
514+
</QueryClientProvider>
515+
);
512516
}
513517

514518
function unmount() {

0 commit comments

Comments
 (0)