Skip to content

Commit

Permalink
Fix query client resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Oct 12, 2024
1 parent 6637045 commit e749474
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "egraph-visualizer",
"version": "2.0.2",
"version": "2.0.3",
"repository": {
"type": "git",
"url": "git+https://github.com/saulshanabrook/egraph-visualizer.git"
Expand Down
6 changes: 5 additions & 1 deletion src/Visualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,11 @@ export function render({ model, el }: { el: HTMLElement; model: AnyModel }) {
export function mount(element: HTMLElement): { render: (egraphs: string[]) => void; unmount: () => void } {
const root = createRoot(element);
function render(egraphs: string[]) {
root.render(<Visualizer egraphs={egraphs} />);
root.render(
<QueryClientProvider client={queryClient}>
<Visualizer egraphs={egraphs} />
</QueryClientProvider>
);
}

function unmount() {
Expand Down

0 comments on commit e749474

Please sign in to comment.