QNoSsr
This component makes sense only if you are creating a SSR website/app.
It avoids rendering its content on the server and leaves that for client only. Useful when you got code that is not isomorphic and can only run on the client side, in a browser.
Alternatively, you can also use it to render content only on server-side and it automatically removes it if it ends up running on a client browser.
Installation
Edit /quasar.conf.js
:
framework: { |
Examples
Basic:
<q-no-ssr> |
Multiple client nodes:
<q-no-ssr> |
Multiple client nodes with tag prop:
<q-no-ssr tag="blockquote"> |
Placeholder property:
<q-no-ssr placeholder="Rendered on server"> |
Placeholder slot:
<q-no-ssr> |
Multiple placeholder slot:
<q-no-ssr> |
Only placeholder slot:
<q-no-ssr> |
Vue Properties
Vue Property | Type | Description |
---|---|---|
tag | String | HTML tag to use to render the component. Default: ‘div’ |
placeholder | String | String to display on server, before the client takeover. |