Interacting with `window.location` using Effect or @effect/platform-browser
Does either
Reading from the global page state is inherently a stateful and impure operation, and as such it feels like it should be the result of an
This feels like something that would be at home in
effect or @effect/platform-browser provide an Effectful way of interacting with window.location etc?Reading from the global page state is inherently a stateful and impure operation, and as such it feels like it should be the result of an
Effect, but it feels awkward throwing a bunch of direct wrappers around calling window.location and its sub-fields, and I don't really know where to put it in my code.This feels like something that would be at home in
@effect/platform-browser, but after a first look I was unable to find anything