The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/components/Message/hooks/useBlockRendered.js

9 lines
238 B

import { useRef, useEffect } from 'react';
export const useBlockRendered = () => {
const ref = useRef();
useEffect(() => {
ref.current.dispatchEvent(new Event('rendered'));
}, []);
return { className: 'js-block-wrapper', ref };
};