The NodeList component is a wrapper around the nodeListStore. It renders the node list data and handles the loading state.


  • path - RealtimeDB reference
  • startWith - (optional) initial value to use before the collection is fetched


  • default - The node list data
  • loading - Loading state

Slot Props

  • data - An array of nodes
  • ref - The Database node reference
  • rtdb - The Database instance
  • count - The number of nodes returned by the query


    import { NodeList } from 'sveltefire';

<NodeList path={'posts'} let:data let:count>

    <p>Found {count} posts</p>
    {#each data as post}

    <p slot="loading">Loading...</p>