NullVoxPopuli Profile picture
Jul 30, 2022 4 tweets 3 min read Read on X
Using a one-line function, here is an example of how you prevent "loading flashing" when you refresh or load new data.

Play with it here : tinyurl.com/2p8kjte8

#JavaScript #EmberJS #REPL #StarWars
tinyurl preview: preview.tinyurl.com/2p8kjte8

direct link isn't possible on twitter due to how twitter gives up on parsing my URL 🙃
Here is the one liner:

let previous;
const keepLatest = (data) => previous = data || previous; Image
The one liner, explained (and written more how you'd want in a project at work):

#JavaScript #EmberJS // JavaScript code, annotat...

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with NullVoxPopuli

NullVoxPopuli Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @nullvoxpopuli

Jun 23
Find out your reliance on certain individuals via

npx dependency-maintainers

Depending on your project, the results may surprise you!

Image here is from the @sveltejs repo
Image
for point of comparison, here is an ember project mid-transition through old style build tools (broccoli) and new (vite) Image
and here is what that ember project "should" look like once the old build system is completely gone

(though, there is probably more to remove from here as well) Image
Read 5 tweets
Feb 17, 2023
Today I was let go from @CrowdStrike because I was standing up for people too afraid to speak up.

If you have any #EmberJS jobs where you're interested in moving to Glint / gjs/gts (Basically Polaris before it's out), lemme know
They're reasoning: I was now considered an "insider threat"

For a security company this a serious business, however their evidence for coming to this conclusion was the following:
In April of 2022, I recommended to co-workers, per IT recommendation to me over slack, to move their code to a folder outside their HOME directory so that the backup software had less to do. As with JS projects, there are tons of tiny files and this stresses backup software.
Read 11 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(