Avoid unnecessary server calls.
Not all of your views will be returning payloads. Some of your pages will be fixed, and defined entirely within the SPA itself. DxSvelte supplies a decorator which will mark a page for exclusion from the list of pages which fetch server-side props upon loading, reducing the burden on your back-end while potentially improving performance for the end users.
Apply the supplied decorator to any static views which will never receive server-side props like so:
from dxsvelte import render, static_view
@static_view
def index(req):
return render(req)