Tag: #reactjs
-
Updating GraphQL cache after each fired query
0 I am currently trying to fire a GraphQL query several times on scroll and after each time store the result in local cache without overwriting the previous one. In React I could achieve this easily using local state and setting it to […oldData, …newData]. However I have no luck doing this via GraphQL. I’ve…
-
TailwindCSS Styles not rendering when styles are stored in a variable string
0 I am using WordPress, ReactJS, WpGraphQL and Advanced Custom Fields. I am storing the TailwindCSS styles in a text string within ACF and I am getting that string returned in react via GraphQL. The problem is that the variable is not rendering the CSS styles in the string correctly. Posting my code will not…
-
Types conflict when using GraphQL Code generator (codegen)
1 given the following codegen.ts import type { CodegenConfig } from ‘@graphql-codegen/cli’; const config: CodegenConfig = { overwrite: true, schema: ‘https://mySchema’, documents: ‘src/**/*.ts’, generates: { ‘src/apollo/gql/’: { preset: ‘client’, plugins: [] } } }; export default config; the types generated starting from my schema.json are in conflict. I have a query with the following request:…
-
Tried to use the environment variable in graphql codegen file
0 I tried to use the environment variable in the codegen.yml. I decided to generate the codegen.yml file by using the handlebars. yarn add handlebars codegen-template.yml overwrite: true generates: ./src/generated/graphql.tsx: schema: "{{REACT_APP_GRAPHQL_ENDPOINT}}" documents: src/**/*.graphql plugins: – typescript – typescript-operations – typescript-react-apollo package.json "scripts": { "generate-yaml": "npx handlebars -c .env -i codegen-template.yml -o codegen.yml" } and…
-
Inquiry about Sentry’s Capabilities for Detecting N+1 Query Problems in React GraphQL Node.js Project
0 I’m reaching out to inquire about Sentry’s capabilities in detecting specific performance issues. My technology stack includes React for the front end, GraphQL for the API layer, Node.js for server-side logic, and PostgreSQL as the database management system. Here are the specific areas we are looking for assistance with: Frontend Issues in Real Time…
-
Get all the related posts except the current post using WPGraphQl in reactjs
2 I’m trying to grab the related posts except the current post using WPGraphQL. My thought is to exclude the ID of the current post and display all related blog posts within the category. I’m new to GraphQL, I don’t know how to figure out to solve it. is this possible in GraphQL? Please help…
-
Mock UseMutation in react testing library and jest used in custom hook
0 I have created a custom hook which is having several functions for processing the data and calling the functions. I am writing the test cases for few specific scenarios inside the hook. I will mention in the code below only functions specific to my case. This is my custom hook : useShippingInformation.js const useShippingInformation…
-
.Net Full Stack Developer(GraphQL & ReactJS) – Amzur Technologies, Inc. – Remote
Amzur Technologies, Inc. Remote Depends on Experience Contract: Independent, W2, 12 Month(s) Skills .Net Core ReactJS GraphQL SQL Job Description 12 Months Contract To Hire Need to go to Onsite First Day to pick the Laptop, Either Plano, TX or Mechanicsburg, PA Experience 7+ years’ experience as a Software Engineer or Application Developer developing…