Title: [v3] transaction implemented? · Issue #78 · fullstackreact/react-native-firestack · GitHub
Open Graph Title: [v3] transaction implemented? · Issue #78 · fullstackreact/react-native-firestack
X Title: [v3] transaction implemented? · Issue #78 · fullstackreact/react-native-firestack
Description: I'm trying to update a post object in Firebase using a transaction, but i'm getting an error that transaction is not defined. I looked in: \react-native-firestack\lib\modules\database.js but do not see any references to transactions, is ...
Open Graph Description: I'm trying to update a post object in Firebase using a transaction, but i'm getting an error that transaction is not defined. I looked in: \react-native-firestack\lib\modules\database.js but do not...
X Description: I'm trying to update a post object in Firebase using a transaction, but i'm getting an error that transaction is not defined. I looked in: \react-native-firestack\lib\modules\database.js bu...
Opengraph URL: https://github.com/fullstackreact/react-native-firestack/issues/78
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[v3] transaction implemented?","articleBody":"I'm trying to update a post object in Firebase using a transaction, but i'm getting an error that transaction is not defined.\n\nI looked in:\n\n\\react-native-firestack\\lib\\modules\\database.js\n\nbut do not see any references to transactions, is this implemented?\n\nExample code:\n\n`function toggleStar(postRef, uid) {\n postRef.transaction(function(post) {\n if (post) {\n if (post.stars && post.stars[uid]) {\n post.starCount--;\n post.stars[uid] = null;\n } else {\n post.starCount++;\n if (!post.stars) {\n post.stars = {};\n }\n post.stars[uid] = true;\n }\n }\n return post;\n });\n}`\n","author":{"url":"https://github.com/tegument","@type":"Person","name":"tegument"},"datePublished":"2016-10-19T23:34:07Z","url":"https://github.com/fullstackreact/react-native-firestack/issues/78"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0aa04d08-0ba6-9c25-275b-11c46a01afb4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 859A:11B988:BDB55D:10132FC:6AFE6ECE |
| html-safe-nonce | 0b4fb312dca62099843484edf4b4df3be7ce1cefec31a41117c3dead4e1cec74 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTlBOjExQjk4ODpCREI1NUQ6MTAxMzJGQzo2QUZFNkVDRSIsInZpc2l0b3JfaWQiOiI1MzA0NjE4Nzc2OTY2MjIyODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cfac2aa232eed0d9ee7265b998928f34f21ac965a2cd53c75db3a8dbb53f78ea |
| hovercard-subject-tag | issue:184100371 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/fullstackreact/react-native-firestack/78/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9afe4da5b258d07cdbeed73547c708b9b778ffa92fde3306e86b81ea4a6e5660/fullstackreact/react-native-firestack/issues/78 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9afe4da5b258d07cdbeed73547c708b9b778ffa92fde3306e86b81ea4a6e5660/fullstackreact/react-native-firestack/issues/78 |
| og:image:alt | I'm trying to update a post object in Firebase using a transaction, but i'm getting an error that transaction is not defined. I looked in: \react-native-firestack\lib\modules\database.js but do not... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tegument |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/fullstackreact/react-native-firestack git https://github.com/fullstackreact/react-native-firestack.git |
| octolytics-dimension-user_id | 16674738 |
| octolytics-dimension-user_login | fullstackreact |
| octolytics-dimension-repository_id | 60655868 |
| octolytics-dimension-repository_nwo | fullstackreact/react-native-firestack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 60655868 |
| octolytics-dimension-repository_network_root_nwo | fullstackreact/react-native-firestack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width