New filters on the Home Feed, take a look!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
setting doc id to uid
Post Flair (click to view more posts with a particular flair)
Author Summary
juicefannnnn999 is in Idaho
Post Body

howdy, so im trying to make a game, and i want to basically have it where the account is associated with the firestore document. so that i can have it loaded in when the user loads in. also, how would i make it update the doc everytime the variable value increases, instead of every reload?(i have my game values stored in local storage, and i have it look at the values, and make a doc based on those) thank you!

var locCountvalue = localStorage.getItem('locCount');
var xpCountvalue = localStorage.getItem('xpCount');
var goldenkeysvalue = localStorage.getItem('goldenKeys');
var levelvalue = localStorage.getItem('level');
var clickvalue = localStorage.getItem('click');
// try to push data
addDoc(ColRef, {
locCount: locCountvalue,
xpCount: xpCountvalue,
goldenkeys: goldenkeysvalue,
level: levelvalue,
click: clickvalue,
})

Author
Account Strength
40%
Account Age
1 year
Verified Email
Yes
Verified Flair
No
Total Karma
211
Link Karma
31
Comment Karma
180
Profile updated: 12 hours ago
Posts updated: 3 months ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago