GetScatter / Boilerplates

A repository of example project boilerplates for our SDKs
11 stars 6 forks source link

Updated Boilerplates #1

Open jonericcook opened 5 years ago

jonericcook commented 5 years ago

Hello @nsjames ,

I am asking if up-to-date boilerplate examples could be provided. Also, could an example using Vuex be provided as well? A big hurdle is reacting to the user closing scatter mid session and or removing my web app from scatter mid session. As of right now, the only way to see that things have changed is to do a page refresh.

If it could be shown how to have eos / scatter / network in the vuex store state and how to reactively change them (eos + scatter) based off of the above two scenarios, it would be greatly appreciated.

jonericcook commented 5 years ago

There is this

https://github.com/EOSEssentials/Scatter-Demos

But if you still feel led to do boiler plates, I wont stop you :). If not, let me know and i can close this issue.

nsjames commented 5 years ago

So that demos one is really really old (like, pre-mainnet) and pretty defunct by now. I'm going to be re-vamping the docs soon since ScatterJS just changed significantly and became easier.

It also had an event listener added to it which automatically clears out the ScatterJS.identity variable when the user either closes Scatter or removes permissions for the dapp and handles all of that stuff automatically.

I'm going to leave this ticket open for now until this repo gets revamped too.

jonericcook commented 5 years ago

Thanks @nsjames for the reply. I appreciate it. I did see the note about the event listener in your telegram pin but am unable to implement it. I put my scatter object in the Vuex store and when I close Scatter and or remove a permission, after i have already logged in with scatter, the identity / scatter object does not change. It only changes after i refresh the page.