javascript - Flagging simulated data -


consider typical list app, written in meteor. when user adds new item list, meteor run method on client , server enable ui update quickly. there way of telling whether item in list simulated, client-side data or data has been stored server-side?

my use case in example apply different styling new list items until had been ran server-side. what's best way of achieving different appearance depending on status of data in question?

many thanks.

you can use collection-hooks before.insert (https://github.com/matb33/meteor-collection-hooks) in order add insertedat date example (or flag) on client side, long not have 'flag' means it's in pending insert status, can apply different display on object.

hope help. regs.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -