"nice guy" - @pburtchaell
huntercaron / firebase-data Goto Github PK
View Code? Open in Web Editor NEWSuper simple live syncing for your Framer X Data objects
Super simple live syncing for your Framer X Data objects
"nice guy" - @pburtchaell
const data = firebaseData({
messages: []
})
function addToArray() {
// this will error due to array not existing
data.messages.push("Hey bob")
}
addToArray()
Using FirebaseData locally while developing seems to lead to hitting 100 concurrent 'connections' even though only one session seems actively open.
Maybe there is some way to disconnect or re-use the same session? Can we store a sessionID of sorts in local storage and use database.goOffline() ? https://firebase.google.com/docs/reference/js/firebase.database.Database.html#go-offline
would be nice to be able to detect when the data object has synced with firebase so the prototype can change accordingly
Edit: another thought on this is that it would no longer be a 1:1 swappable api with the data object if this were to be added. Might go against the core idea of the package.
A hack fix would be to set a initialized: false
property locally on the data object in your prototype and have it set as true
on firebase, essentially making it so once you are connected to firebase it reads true
Could be worth the time to write some basic unit tests. Otherwise, we'll need to copy/paste this into Framer every time we make a change.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.