W
W
WebDev2020-11-17 11:28:15
Node.js
WebDev, 2020-11-17 11:28:15

Global state in nuxt?

Hello! Tell me if it's possible to store data "globally" somehow in nuxt. I do not mean Vuex, but quite globally, that is, between visitors. For example, to get some data from the server and access it without requests to the server. After all, Naxt starts and lives constantly, and does not "die" like php. Maybe you can somehow store data in it permanently and for everyone?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danil Vinogradov, 2020-11-17
@danielvinogradov

If you need exactly

receive data and access it without requests to the server
, then perhaps caching can help you. How to cache Vue components? .
And then there is the Nuxt Content module . It will allow you to store data in files directly on the front (in nuxt) in .md, .json and other formats.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question