Update document title while loading
This commit is contained in:
parent
966a4bb8c8
commit
78545245a3
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ function Classroom() {
|
|||
|
||||
useEffect(() => {
|
||||
async function getClassroomById(classId) {
|
||||
document.title = 'Carregando...';
|
||||
const result = await fetchClassroomById(classId);
|
||||
setClassroom(result.data);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue