Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error when method are called on not fully active docs #96

@marcoscaceres

Description

@marcoscaceres

Speaking to @saschanaz, they suggested that watchPosition() and getCurrentPosition() should invoke the error callbacks if the document is not fully active.

This makes sense in particular for promise-wrapped code, which would otherwise get stuck.

// current spec, this doesn't proceed in the odd case where the geo 
// object is from a non-fully active doc. 
await new Promise((res, rej) => geo.getCurrentPosition(res, rej));

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions