Update document title while loading

This commit is contained in:
Leonardo Murça 2022-07-08 15:20:35 -03:00
parent 966a4bb8c8
commit 78545245a3

View file

@ -9,6 +9,7 @@ function Classroom() {
useEffect(() => { useEffect(() => {
async function getClassroomById(classId) { async function getClassroomById(classId) {
document.title = 'Carregando...';
const result = await fetchClassroomById(classId); const result = await fetchClassroomById(classId);
setClassroom(result.data); setClassroom(result.data);
} }