worktile / worktile/store

Throw human error message when use @Action without extends Store

Open
#61 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
TypeScript
Stars
61
Forks
9
Avg merge
6h 6m
Merged PRs (30d)
3

Description

Current will throw error getStoreInstanceId is not defined,

We expect it throw human error message, e.g.:

The @Action decorator can only be used in functions that service inherit Store or EntityStore, and can't be used independently in other services

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start at the @Action decorator implementation and reproduce its use in a service that does not extend Store or EntityStore. Trace the current getStoreInstanceId error and change the failure to the human-readable message shown in the issue; done means the misuse no longer reports that undefined identifier.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.