Interacting with `window.location` using Effect or @effect/platform-browser

Does either
effect
or @effect/platform-browser provide an
Effect
ful 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
Was this page helpful?