Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
VSCode user snippet didnot accept much line of code

I was trying to make a custom snippet using vscode, but whenever I add code with few lines, it throws error like Snippet error

Here is the custom snippet I was trying to add

    "Import createApi and fetch base query": {
        "scope": "javascript, typescript",
        "prefix": "importcrapiandfetch",
        "body": [
            "import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
            
                export const fetcherApi = createApi({
                  reducerPath: 'fetcherApi',
                  baseQuery: fetchBaseQuery({
                    baseUrl: '',
                    credentials: 'include',
                  }),
                  tagTypes: [''],
                  endpoints(build) {
                    return {
                        post: build.mutation({
                        query: (body) => ({ url: '', method: 'post', body})
                      }),put: build.mutation({
                        query: ({ id, values}) => ({
                          url: '',
                          method: 'put',
                          body: values,
                        })
                     }),
                     get: build.query({
                        query: () => ({ url: '' })
                      }),
                    };
                  },
                });
                
                export const {
                } = fetcherApi;"
        ],
        "description": "Fetcher api for fetching data"
    }```
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!