rtfreedman / DMinimal

1 stars 1 forks source link

Switch how spell slots exist on front end to make them reactive #6

Closed rtfreedman closed 6 years ago

rtfreedman commented 6 years ago

Have an array which ends up not being an array as I understand it... very confusing. As far as I understand it I'm creating characteristics of the array when I add values with duplicate keys...? Which is why vue is screaming at me. Going to switch to a map approach so that it will behave properly. Something like: slots: { '1': '4', '2': '3', '3': '2'...} (level : slots) instead of two arrays.

rtfreedman commented 6 years ago

Maybe just return it like this from golang since it's substantially easier for me to wrangle things there