Open
Description
Sometimes we call store.$patch(m.initialState);
which works but it might be faster to instead find a way to supply Pinia with the initial state before we create the store. The previous Vuex store approach with automatic Mutation handling couldn't support this optimisation but I'm hopeful we can make it work now.
Maybe we need to use a PiniaPlugin to supply a runtime default state to the store definition function.