codediodeio / sveltefire

Cybernetically enhanced Firebase apps
MIT License
1.67k stars 127 forks source link

Support for Firebase Realtime Database with Node and NodeList components #115

Closed ItsAlexousd closed 9 months ago

ItsAlexousd commented 1 year ago

This PR introduces two new components, Node and NodeList, designed to interact with Firebase's Realtime Database.

Both components support real-time data updates, loading states, and provide convenient slot props for accessing the data and its reference.

These additions aim to provide developers with a more seamless experience when working with the Realtime Database, in the same spirit as the existing Firestore components. Detailed documentation and usage examples are also updated in the README.

⚠️ Tests fail because the Realtime Database is not enabled on the Firebase project! (tested with emulator, see PR #114)

Please review the changes and let me know if any adjustments are required.

codediodeio commented 1 year ago

This is looking awesome! I just merged the storage features from #112 and that created some conflicts. Just minor stuff that needs to be moved around. If you want to update the PR I should be able to merge right away, otherwise I'll fix it up next week.

ItsAlexousd commented 1 year ago

All done! 😉

codediodeio commented 9 months ago

Sorry about the delay. This looks great!