import { addFunctions, creataProject, createSourceFile, saveProject } from '@mutates/core'; // Initialize a new project createProject(); // Add a TypeScript file to the project createSourceFile( 'example.ts', ` const greet = (name: string) => { return 'Hello, ' + name; }; `, ...
{$apply: function}passes in the current value to the function and updates it with the new returned value. {$add: array of objects}add a value to aMaporSet. When adding to aSetyou pass in an array of objects to add, when adding to a Map, you pass in[key, value]arrays like so:...
const app = createSSRApp({ setup() { return () => withDirectives(h('div', { class: 'test' }), [[vColor, 'red']]) }, }) app.mount(container) expect(`Hydration style mismatch`).not.toHaveBeenWarned() }) }) })3 changes: 3 additions & 0 deletions 3 packages/runtime-core/...
assign(value: object): Do a shallow merge of the node with the given value. If the node is an object, the value will be merged into the object similar to Object.assign(<currentValue>, value). unassign(attributes: string[]): Remove the given attributes from the existing value. Array ope...
perf: should not invalidate ModuleOptions if mutate has same id with hook param moduleInfo=this.getModuleInfo(id) ifmoduleInfo) =false
const { mutate } = useSWRInfinite(getKey, fetcher, { revalidateAll: true }) mutate(pages) // ← this will first mutate the local data, and then revalidate all pages By default, SWR Infinite only revalidates the first page (there's a PR that fixes this behavior: #1301) that's because...
it.skip('displays an error if the create mutation failed', async () => { const showFlashAlertSpy = jest.spyOn(FlashAlert, 'showFlashAlert') const {getByText, getByLabelText} = render() await act(async () => jest.advanceTimersByTime(1000)) @@ -170,7 +172,8 @@ describe('Library...
GitHub Copilot Enterprise-grade AI features Premium Support Enterprise-grade 24/7 support Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address...
const { target, desc: inputDesc = '', forTask = false, throwErr } = options; function runMutateFnItem<T = SharedState>(options: { target: T; desc?: string; forTask?: boolean; throwErr?: boolean ;extraArgs?:any}) { const { target, desc: inputDesc = '', forTask = false, thr...
{$apply: function}passes in the current value to the function and updates it with the new returned value. {$add: array of objects}add a value to aMaporSet. When adding to aSetyou pass in an array of objects to add, when adding to a Map, you pass in[key, value]arrays like so:...