Β© 2026 Hedgehog Software, LLC
cache()
createAsync()
revalidate()
const getNotes = cache(async () => { "use server"; // get data const { data } = await supabase.from("notes").select(); // return data return data; }, "notes");
const notes = createAsync(() => getNotes());
notes
createAsync
revalidate("notes")
revalidate("some random string")