Skip to content

Commit

Permalink
Stop using Pinia in development temporarily
Browse files Browse the repository at this point in the history
See #787.
  • Loading branch information
matthew-white committed May 9, 2023
1 parent f81d249 commit 3c4785e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request-data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { createResource, resourceView } from './resource';
const createState = () =>
shallowReactive({ data: null, awaitingResponse: false });
const patchMock = (f) => { f(); };
const defineResourceStore = process.env.NODE_ENV === 'development'
const defineResourceStore = false // eslint-disable-line no-constant-condition
? (name) => defineStore(`requestData.${name}`, { state: createState })
: () => {
const store = createState();
Expand Down

0 comments on commit 3c4785e

Please sign in to comment.