absurd-django icon indicating copy to clipboard operation
absurd-django copied to clipboard

Update how loading pages work

Open patrick91 opened this issue 3 years ago • 0 comments

Current we always re-execute the code when the "file" changes, and when we do that we set a variable called browser_page to the URL we defined in the preview browser.

We should change this to have our javascript calling a function to load a page, its signature could look like this:

def load_page(url, method, body) -> Response:
    ...

this will allow us to also handle form events and other kinds of navigation.

patrick91 avatar Sep 25 '22 13:09 patrick91