andygrove commented on PR #301:
URL: https://github.com/apache/arrow-ballista/pull/301#issuecomment-1264481641

   I tried this:
   
   ```
     var graphDiv = useRef<HTMLDivElement | null>(null);
   
     useEffect(() => {
       if (isOpen) {
         dot();
         if (graphDiv.current != null) {
           d3.graphviz(graphDiv.current).renderDot(dot_data);
         }
       }
     }, [graphDiv.current]);
   
     return (
       <>
         <Button onClick={onOpen}>View Graph</Button>
         <Modal isOpen={isOpen} onClose={onClose}>
           <ModalOverlay />
           <ModalContent>
             <ModalHeader>Graph for {props.value} job</ModalHeader>
             <ModalCloseButton />
             <ModalBody>
               <div ref={node => graphDiv.current = node}></div>
             </ModalBody>
             <ModalFooter>
               <Button colorScheme="blue" mr={3} onClick={onClose}>
                 Close
               </Button>
             </ModalFooter>
           </ModalContent>
         </Modal>
       </>
     );
   ```
   
   This seemed to get farther but then failed with a wasm validation error - 
failed to match magic number.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to