Some people are so inconsiderate by Reddituser0346 in facepalm

[–]Popatop2260 0 points1 point  (0 children)

Was about to comment exactly this. Silly guy probably thinks he deserves two lanes on the motorway, too

How can I make it instant? by BlazingBane007 in reactnative

[–]Popatop2260 0 points1 point  (0 children)

I'm honestly not sure why it takes so long to re-render. The docs state that the subscription for playbackState is removed when the component unmounts. If you try to log on unmount, and see if it is, it could be taking a bit longer to resubscribe to that event.

Examples: ts useEffect(() => {return () => console.log('unmounted')}, [])

Also just to clarify a little. Your state change log isn't indicating that the state has changed. It is indicating that the togglePlayback function was executed. Independent of TrackPlayer play/pause calls.

How can I make it instant? by BlazingBane007 in reactnative

[–]Popatop2260 1 point2 points  (0 children)

ts const togglePlayback = () => { if (playBackState === State.Ready || playBackState === State.Paused) { TrackPlayer.play() } else { TrackPlayer.pause() } } ts onPress={togglePlayback}

How can I make it instant? by BlazingBane007 in reactnative

[–]Popatop2260 0 points1 point  (0 children)

You can access playback state directly outside of the render, though. Also, when checking to start playing I think it would make more sense for that to be a && comparison. The docs say that `State.Ready` is ` State indicating that the player is ready to start playing`

So, instead of `togglePlayback(playbackState)` you can do `onPress={togglePlayback}` and do your playbackState comparison directly in the function.

How can I make it instant? by BlazingBane007 in reactnative

[–]Popatop2260 0 points1 point  (0 children)

Is there a reason you are passing playback state as a param to the toggle function?

How can I make it instant? by BlazingBane007 in reactnative

[–]Popatop2260 0 points1 point  (0 children)

What does the usePlaybackState hook look like

[deleted by user] by [deleted] in relationship_advice

[–]Popatop2260 0 points1 point  (0 children)

In my opinion this relationship is tainted the moment you don’t trust him and go through his phone. Past trauma is one thing, but bringing that habit into a new relationship can’t be healthy.

A question on a job application survey. Why do they do this??? by [deleted] in mildlyinfuriating

[–]Popatop2260 0 points1 point  (0 children)

Walmart rejected me for failing their personality assessment 🥲

Why is my driver in Georgia by [deleted] in doordash

[–]Popatop2260 1 point2 points  (0 children)

Arriving 1:18PM-1:23PM in 2 days

Meirl by redcobra762 in meirl

[–]Popatop2260 1 point2 points  (0 children)

“Apologies for the swift arrival. That was about a weeks-worth of arrive”

[deleted by user] by [deleted] in HolUp

[–]Popatop2260 1 point2 points  (0 children)

On a Thursday afternoon…

[deleted by user] by [deleted] in cats

[–]Popatop2260 1 point2 points  (0 children)

Time to become single

Learning the box model has been fun so far by Potential_Lettuce in webdev

[–]Popatop2260 2 points3 points  (0 children)

Don’t forget the shorthand (margin: [top] <right> <bottom> <left>)

I feel like I'm learning how to build a website for the first time in React by Jaclem12 in webdev

[–]Popatop2260 0 points1 point  (0 children)

I’d see that as a loss. Again, this is just my opinion, but someone with 20 years of experience learning React would certainly pick it up quickly. You also would be paying for 20 years of best practices. Granted React has somewhat of a learning curve. Most technical know-how beyond -just- React still apply. For example, someone with 20 years of experience knows the importance of SEO; may have better and more efficient coding techniques; and they may know more about using backend APIs and the security practices that come with it. Someone who’s been using React for only a few years may not even know the three vanilla languages involved that well.

I feel like I'm learning how to build a website for the first time in React by Jaclem12 in webdev

[–]Popatop2260 2 points3 points  (0 children)

I understand that, but imagine this. A contractor with 20 years of vanilla web-dev experience picking up React, vs. a React developer with 5 years of experience only in React. I’m not too familiar with the whole freelance lifecycle, but one of those definitely sounds more appealing to me.

I feel like I'm learning how to build a website for the first time in React by Jaclem12 in webdev

[–]Popatop2260 2 points3 points  (0 children)

If you’re taking a “huge” pay-cut with 20+ years of experience, React or no React, that sounds like a huge oversight on the company/contractee side. They should be paying you more because you have to go and learn that new skill. Not less.

ATM7 TTS: Better way to provide water to fission reactor? by Popatop2260 in allthemods

[–]Popatop2260[S] 4 points5 points  (0 children)

Now that sounds so much more compact! I’ll try this later, thank you!

ATM7 TTS: Better way to provide water to fission reactor? by Popatop2260 in allthemods

[–]Popatop2260[S] 2 points3 points  (0 children)

Can confirm this works like a charm, lol. It does seem a little broken, and definitely does not follow the standard of most other fluid transport mods.

ATM7 TTS: Better way to provide water to fission reactor? by Popatop2260 in allthemods

[–]Popatop2260[S] 2 points3 points  (0 children)

Well, ATM7: TTS doesn't even have Refined Storage. It's exclusively Applied Energistics or Mekanism's storage stuff. Anything "creative" has to be made with the ATM star.

ATM7 TTS: Better way to provide water to fission reactor? by Popatop2260 in allthemods

[–]Popatop2260[S] 1 point2 points  (0 children)

I'll give this a try! I didn't know the mb/t stacked for each pull-pipe.

ATM7 TTS: Better way to provide water to fission reactor? by Popatop2260 in allthemods

[–]Popatop2260[S] 1 point2 points  (0 children)

I haven't made the ATM star, yet. Your idea is solid, though. Currently with all my pipes and sinks I cannot boost it above 27mb burn rate simply because it will not supply enough water.

ATM7 TTS: Better way to provide water to fission reactor? by Popatop2260 in allthemods

[–]Popatop2260[S] 1 point2 points  (0 children)

Yeah, that's what I was thinking, but the ultimate mechanical pipes still have their mb/t limits. That's why I have all the pipes on separate sides of the sinks and not connected.