tifmoe / go-fishbowl Goto Github PK
View Code? Open in Web Editor NEWGo + React web app to play FishBowl remotely:
Home Page: https://fishbowl.rocks
Go + React web app to play FishBowl remotely:
Home Page: https://fishbowl.rocks
When starting a new game (on the home page, after typing in team names), the following error always shows up:
This is being caught here (line 70):
go-fishbowl/src/repository/store.go
Lines 67 to 72 in 2859b56
After doing some digging, I found that in Repository.SaveNewGame, GetGame is called before the gameID is set:
go-fishbowl/src/repository/store.go
Lines 35 to 65 in 2859b56
GetGame is trying to access GameID here:
go-fishbowl/src/repository/store.go
Line 36 in 2859b56
but it is not being set util here:
go-fishbowl/src/repository/store.go
Line 59 in 2859b56
GetGame is called again when the GamePage is loaded here:
go-fishbowl/ui/src/pages/Game.js
Lines 61 to 67 in f9d1865
But the error no longer prints to the console because by then the gameID is already set. So we have a situation where GetGame is being called twice in a row with different behavior.
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.