effect icon indicating copy to clipboard operation
effect copied to clipboard

Browser Geolocation API

Open KhraksMamtsov opened this issue 1 year ago • 1 comments

Type

  • [ ] Refactor
  • [x] Feature
  • [ ] Bug Fix
  • [ ] Optimization
  • [ ] Documentation Update

Description

Wrap Geolocation API with Effect https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API

But I have some questions:

  • Can I use Effect.Tag for Geolocation Tag? Or general practice to use GenericTag?
  • Should native error be wrapped with PlatformError? and if so, should the original error be reflected at the type level?
  • Is it necessary to accumulate events as it is done in Stream.fromEventListener?

Related

  • Related Issue #
  • Closes #

KhraksMamtsov avatar May 03 '24 15:05 KhraksMamtsov

🦋 Changeset detected

Latest commit: 09b468b7e153abc76a2651e7b748acc43007c6dc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@effect/platform-browser Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar May 03 '24 15:05 changeset-bot[bot]