setting up test functionality
This commit is contained in:
9
lib/app-events.ts
Normal file
9
lib/app-events.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export const HABIT_PET_DATA_UPDATED_EVENT = "habit-pet-data-updated";
|
||||
|
||||
export function notifyHabitPetDataUpdated() {
|
||||
if (typeof window === "undefined") {
|
||||
return;
|
||||
}
|
||||
|
||||
window.dispatchEvent(new Event(HABIT_PET_DATA_UPDATED_EVENT));
|
||||
}
|
||||
Reference in New Issue
Block a user