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

158
Views
Change the content in Nuxt.js middleware

Is there any way to mutate the content of the response (e.g. page) in the middleware?

I should also mention that I don't want to push a new route (change the URL).

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Mutating the content of a page in a middleware (in some Express-y way I guess) while staying on the same route is not something that you usually do on the front-end. Never saw it and it's a pretty good anti-pattern IMO.

You can make ugly conditionals by wrapping your whole template tho.

Best way would be to receive a different payload from the backend and adapt to it in your front-end.

about 4 years ago · Juan Pablo Isaza Report
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!