Comments (2)
Thanks for checking the provider out!
I'm trying to figure out the right way to sync narrow UI updates with the diagnostics service updates, but i haven't quite figured it out yet. If you don't mind, i have a few questions about this:
-
after
finishUpdateItems()
, can iupdateItems()
again? -
the Diagnostics service pushes updates to the narrow provider; do you have a recommendation for triggering narrow UI updates in this scenario? So far i've come up with this hack.
from atom-narrow-provider-diagnostics.
after finishUpdateItems(), can i updateItems() again?
Whole flow is this
- Type something on UI, that trigger
ui.refresh
- it eventually call
provider.getItems
- in provider's
getItem
, send items to ui byupdateItems(items)
, then finalizefinishUpdateItems()
,finishUpdateItems(items)
is shorthand of update then finish.
Each time, ui call ui.refresh()
, provider.getItems
is called unless it can use cached(by ui) items.
So while narrow-ui is opened, narrow is repeating 1-3 flow, on each trigger of ui.refresh
the Diagnostics service pushes updates to the narrow provider; do you have a recommendation for triggering narrow UI updates in this scenario? So far i've come up with this hack.
Humm, it's difficult, you can manually fire ui.refresh(force: true)
from provider by provider.ui.refresh(force: true)
.
So, if you can subscribe event to update diagnostics push, then fire provider.ui.refresh
?
Also refer narrow bundled core-providers to get some ideas.
from atom-narrow-provider-diagnostics.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom-narrow-provider-diagnostics.