Fork me on GitHub
#biff
<
2022-03-28
>
jeffparker20:03:55

I'm developing an example project on Windows WSL2 and the browser is not refreshing on saved changes.

Jacob O'Bryant20:03:57

I don't have anything to auto refresh the browser, but if you manually refresh then the response should be up to date

Jacob O'Bryant20:03:58

I have thought a bit about this though; actually I think it would be pretty easy to set up auto refresh with htmx web sockets

jeffparker20:03:22

Ah OK. Thanks.

jeffparker20:03:56

Yes, :reloading messages appear on save and browser refresh shows the changes:

👍 1
jeffparker20:03:08

$ ./task dev
starting: com.biffweb$use_config@3fede5ef
starting: com.biffweb$use_random_default_secrets@4be7f34b
starting: com.biffweb$use_xt@58468259
Indexing transactions...
Done indexing.
starting: com.biffweb$use_tx_listener@6030c8e7
starting: com.biffweb.impl.util$use_when$fn__1746@54e6f2b0
starting: com.biffweb$use_outer_default_middleware@3e32d7fc
starting: com.biffweb$use_jetty@25d0f2c6
Jetty running on 
starting: com.biffweb.impl.util$use_when$fn__1746@11c5f7d9
starting: com.biffweb$use_chime@6ac28e58
starting: com.biffweb.impl.util$use_when$fn__1746@551872f7
starting: com.biffweb$use_hawk@69fbbcf6
System started.
There are 0 users. (This message gets printed every 60 seconds. You can disable it by setting `:com.example/enable-worker false` in config.edn)
CSS done
Go to 
nREPL server started on port 7888 on host localhost - 
 13ms 200 get  /
 31ms 200 get  /css/main.css?t=1648499204556
There are 0 users. (This message gets printed every 60 seconds. You can disable it by setting `:com.example/enable-worker false` in config.edn)
:reloading (com.example.test com.example.ui  com.example.schema com.example.feat.home com.example.feat.worker com.example.repl com.example.feat.auth com.example)
CSS done

Testing com.example.test

Ran 1 tests containing 1 assertions.
0 failures, 0 errors.
There are 0 users. (This message gets printed every 60 seconds. You can disable it by setting `:com.example/enable-worker false` in config.edn)
:reloading (com.example.feat.home com.example)
CSS done

Testing com.example.test

Ran 1 tests containing 1 assertions.
0 failures, 0 errors.
There are 0 users. (This message gets printed every 60 seconds. You can disable it by setting `:com.example/enable-worker false` in config.edn)

macrobartfast06:04:46

+1 on auto-refresh, but would just be ‘experiential sugar’

👌 1