This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import Uploady from "@rpldy/uploady"; | |
| import { usePasteUpload } from "@rpldy/upload-paste"; | |
| const ElementPaste = (props) => { | |
| const containerRef = useRef(null); | |
| const onPasteUpload = useCallback(({ count }) => { | |
| console.log("ELEMENT PASTE-TO-UPLOAD files: ", count); | |
| }, []); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useEffect, useRef, useCallback } from "react"; | |
| const useIsMounted = () => { | |
| const mountedRef = useRef(true); | |
| useEffect(() => { | |
| return () => { | |
| mountedRef.current = false; | |
| }; | |
| }, []); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chesstudy-id v1 | |
| AsXATMby8FJKrIUrVMr01H9-mV0wB4uu4F89-zf6S2w |
OlderNewer