Henrik Bechmann

Results 12 comments of Henrik Bechmann

Damn. Not supporting copy is a showstopper for me.

Hey @Rendez, check out https://github.com/HenrikBechmann/react-infinite-grid-scroller/blob/master/src/cradle.tsx starting around line 305 for how I use IntersectionObserver to cycle through visible content in a scroller. Seems to work (modern browsers, reasonably fast hardware)....

@gaearon I use ~~~ const isMountedRef = useRef(true) useEffect(() => { return () => {isMountedRef.current = false} },[]) ~~~ Then I check isMountedRef.current before changing state in a hook component....

Further to this, your documentation about this says that you 'restore state' after your faux unmount, so I used a setIsMounted(false) call from useState in a useEffect cleanup function (returned...

Ok, so my workaround is this. I find that with React.StrictMode useEffect with no dependencies actually runs *twice* (in spite of your documentation promising it only runs once). So my...

I've tried that and get a "@firebase/app-check: AppCheck: Requests throttled due to 400 error. Attempts allowed again after 00m:01s (appCheck/throttled)" Captcha V3 successfully registered in firebase console. I see something...

I think the most direct approach to the undo problem is to provide a message to the user if a file is not successfully loaded indicating that the file is...

In the meantime, is there a way to extend the editor specs for useCreateBlockNote to include a `onDeleteFile` property?

Here's what I'm doing in the meantime (using firebase): My editor is modal ('display', 'edit'). When uploading a file, I record the filename in an array, saved to the same...

Getting the editor media file names is of course trivial ``` getEditorFiles = (editorDocument) => { const editorFiles = [] editorDocument.forEach((block) => { if (['image','video','audio','file'].includes(block.type)) { editorFiles.push(block.props.name) } }) return...