Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Error while updating the Data

Open
#40 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
swift
Domain
documentation

Research direction

Start by locating updateWatchData and the existing watch UI example in the repository. Document how values are sent to the variable, including a working example that avoids the reported StateObject warning, and verify that the explanation matches the current API.

Written by the indexing model from the issue text.

Description

i was adding a Ui to the watch and worked fine when i updated the UI with a $number variable also showed correctly.
but when sending values to the variable using updateWatchData getting some errors.
Accessing StateObject's object without being installed on a View. This will create a new instance each time.

can you just write a bit more in detail how to update with an example. this will help us better.

Dominant language
Swift
Stars
49
Forks
11
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ionic-team/CapacitorWatch

All issues in ionic-team/CapacitorWatch

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.