Comments (4)
Hi @iambumblehead ,
Did you use fetch
to perform your API call in your Vue component ?
Or did you use axios
?
from storybook-addon-mock.
@ECW-HH I don't know how urql ultimately generates the request but I'll take a look now
from storybook-addon-mock.
https://github.com/FormidableLabs/urql/blob/main/packages/core/src/internal/fetchSource.ts#L26
I'm not sure where this "operation.context.fetch" is defined, but it is used to generate the urql request https://github.com/FormidableLabs/urql/blob/main/packages/core/src/internal/fetchSource.ts#L26
from storybook-addon-mock.
https://github.com/FormidableLabs/urql/blob/main/docs/api/core.md this document indicates "window.fetch" is used
from storybook-addon-mock.
Related Issues (20)
- Add a way to disable delay in runtime for all mocked requests HOT 4
- Storybook v7 support? HOT 12
- Support async response function
- Uncaught TypeError: Object(...) is not a function looped error @ faker.js matchMock HOT 2
- Undeclared dependency on `prop-types` HOT 2
- Support HTML responses HOT 1
- Uncaught ReferenceError: module is not defined at story loading
- String not valid as response HOT 1
- Support named parameters in URLs HOT 2
- Uncaught Error: Cannot find module '@storybook/blocks' HOT 5
- [Feature] A way to disable the on/off button HOT 3
- URL params order shouldn't matter
- [Feature] Should be able to abort fetch requests HOT 1
- XMLHttpRequest is not properly reflected when there's no mock matched HOT 12
- Scope mockData to each story
- Addon fails in Yarn pnp projects HOT 3
- getting blank pages when navigating around storybook after adding the mock addon HOT 3
- `forEach` and other properties missing from response headers HOT 3
- Not properly mocking requests made with ofetch HOT 2
- Undeclared dependency on `prop-types` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storybook-addon-mock.