joedski / diddling-with-core-ui-vue

Just diddling around with Core UI Vue as a warm up for another project
0 stars 0 forks source link

How much state management is appropriate on a Dashboard? #1

Open joedski opened 6 years ago

joedski commented 6 years ago

A question to consider while learning this: How much state management is appropriate for this type of project?

There are a few options:

A dashboard isn't quite a full on SPA, but at this point I've only dealt with SPAs and Content Sites, not so much Dashboards, so I'm not sure what's appropriate here. It seems however more like a Content Site than a SPA, and so either Wing it or Event Bus / Global VM seems like a more appropriate choice.

I suppose it depends on just how much data the different sections of the Dashboard are likely to share.

joedski commented 6 years ago

State to Manage

There's only a few pieces of state that I can think of to manage:

There may be more, but as of writing this would seem to indicate that either Wing it or Event Bus / Global VM is the better strategy. Session is pretty cross-cutting, but can easily be handled using a combination of request enhancers and Axios instantiation.