Suggested a change in docs of using the get() method for calling the stats on a dat object.
I was playing around with this and noticed that dat.trackStats().get() did not work because using dat.trackStats() added an object dat.stats that had the get() method. This was not clear to me from the docs.
Note that dat.trackStats().get().version kept returning 0. It got me confused, which is why I suggested this minor change. I recognize that it might be my own fault so feel free to not merge the PR if you judge differently 🥂
Suggested a change in docs of using the get() method for calling the stats on a dat object.
I was playing around with this and noticed that
dat.trackStats().get()
did not work because usingdat.trackStats()
added an objectdat.stats
that had theget()
method. This was not clear to me from the docs.Note that
dat.trackStats().get().version
kept returning0
. It got me confused, which is why I suggested this minor change. I recognize that it might be my own fault so feel free to not merge the PR if you judge differently 🥂