Intercepting API calls with NextJS Server Components #28469
Unanswered
Thor-Herman
asked this question in
Questions and Help
Replies: 6 comments 1 reply
-
@Thor-Herman did you find a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
No, unfortunately not :-/
…On Thu, Feb 29, 2024, 16:51 V. Tinev ***@***.***> wrote:
@Thor-Herman <https://github.com/Thor-Herman> did you find a solution?
—
Reply to this email directly, view it on GitHub
<#28469 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKVVXL4MD5D76NKHO4PZU53YV5G7VAVCNFSM6AAAAABAJE3N4GVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DMMZSGY4DS>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@Thor-Herman Did you find any solution? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@Thor-Herman Did you find any solution on this? We are currently stuck on the same problem |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Thor-Herman no solutions yet? :( |
Beta Was this translation helpful? Give feedback.
0 replies
-
Nope, I haven't pursued this any longer unfortunately
…On Thu, May 16, 2024, 15:50 barboramartinkova ***@***.***> wrote:
@Thor-Herman <https://github.com/Thor-Herman> no solutions yet? :(
—
Reply to this email directly, view it on GitHub
<#28469 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKVVXL3WZR3MWKX2CO276PTZCS2TTAVCNFSM6AAAAABAJE3N4GVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TINJYGUZDA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I need some help mocking an endpoint for some Cypress tests with Next 14.
We are fetching data at the top level of a page using the async await syntax for server components. Something like this:
I want to mock this fetch for a cypress test, so that we are not actually fetching it from our backend. However, this seems impossible to achieve with
intercept
because there is no client-side fetch, it's all happening server side and being sent as static HTML.Is there a best practice for mocking in scenarios like this?
Beta Was this translation helpful? Give feedback.
All reactions