How can we improve Breeze.js?

Fire event on metadata FETCHING (not just fetched

There is a helpful event for metadataFetched. However, it would be even more helpful to also add an event right BEFORE the metadata request is sent out.

My use case for this is I am showing textual progress updates on screen, and I would like to update the message when metadata is fetching. I can use the "Fetched" event to show that we are done, but would need a "Fetching" event to indicate when we start.

1 vote
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Joel shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Joel commented  ·   ·  Flag as inappropriate

    Reason for this is because Metadata may get fetched at times even when I did not explicitly call for it (when making service all for first time when no metadata is stored yet), so it is not easy to know when Metadata is being fetched. (Now I am using Angular http interceptor to check url for metadata calls, then broadcasting event, but this is very hacky)

Feedback and Knowledge Base