Q1. What arguments does a GraphQL resolver receive?
A resolver has the signature `(parent, args, context, info)`: - `parent` (also root/value): the object returned by the parent resolver. - `args`: the arguments supplied t...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (25 available).
A resolver has the signature `(parent, args, context, info)`: - `parent` (also root/value): the object returned by the parent resolver. - `args`: the arguments supplied t...
A context switch is the act of saving the state of one thread or process and restoring another so execution can resume later. The kernel saves the program counter, regist...
`context.Context` carries deadlines, cancellation signals and request-scoped values across API boundaries and goroutines. It is how cancellation and timeouts propagate th...
You can use **Context** in your application directly and is going to be great for passing down data to deeply nested components which what it was designed for. Whereas **...
The defaultValue argument is only used when a component does not have a matching Provider above it in the tree. This can be helpful for testing components in isolation wi...
When a user logs in and reload, to persist the state generally we add the load user action in the useEffect hooks in the main App.js. While using Redux, loadUser action c...
The preexisting variables outside of the function scope including state, props and context leads to a mutation and they result in unpredictable bugs during the rendering ...
The `useContext` hook is a built-in React Hook that lets you access the value of a context inside a functional component without needing to wrap it in a component. It hel...
The `useContext` hook in React is used to share data across components without having to pass props manually through each level. Here are some common and effective use ca...
Yes, it's common to combine **useReducer** with **useContext** to build a lightweight state management system similar to Redux: ```js const AppContext = React.createConte...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.