mrichar1 / pinia-jsonapi

Use a JSONAPI api with a Pinia store, with data restructuring/normalization. Topics
GNU Affero General Public License v3.0
8 stars 2 forks source link

Updates invocations of the store in docs to current usage: `jsonapiStore` --> `createJsonapiStore` #4

Closed rosschapman closed 4 months ago

rosschapman commented 4 months ago

Hey folks. I was working my way through the docs and was confused by what seems like outdated usage of jsonapiStore as the store invocation function. I believe what I'm suggesting here is correct? Thanks you!

mrichar1 commented 4 months ago

Hi,

Thanks for submitting this documenttion issue. You're quite right that the documentation was incorrect - however it was actually 'more wrong' than the module name - createJsonapiStore actually now returns an object, one property of which is jsonapiStore.

Rather than merging this PR I've just edited the docs directly with what should be the correct usage. If you could have a look and see if that works for you as expected.

Many thanks!

rosschapman commented 4 months ago

Love it! Thanks @mrichar1!