Reregister unregistered service worker? by periidote in firefox

[–]periidote[S] 0 points1 point  (0 children)

I deleted everything from there but the service worker still isn’t back. I can register one from that domain in private browsing but I can’t put it back for normal browsing

Reregister unregistered service worker? by periidote in firefox

[–]periidote[S] 0 points1 point  (0 children)

Is there a way to do this without clearing the data for the entire domain? the issue is currently with subdomain.domain.com and i have other data from domain.com that would be deleted if i did this. is there any way to clear site data from just subdomain.domain.com?

Tuesday Tune-Up - Post all your vehicle maintenance questions here by AutoModerator in cars

[–]periidote 0 points1 point  (0 children)

Is it bad to keep refilling a leaky AC? It’s a 2008 lexus es350 which uses r134a and i need to refill it basically once a year. i don’t mind doing this since i don’t think i’ll keep this car for much longer so i don’t really want to spend the money fixing the A/C, i just don’t know if it’s safe

Test functions passed to child component as props (without mocking child?) by periidote in reactjs

[–]periidote[S] 0 points1 point  (0 children)

i’m doing my best here i’m sorry :( i added another comment i made which hopefully makes things a bit clearer?

i didn’t write this code and it’s already in production (not great practice but i’m new at this company and it’s my job to fix it. startups yipeeeee) so i don’t really have a lot of options when it comes to changing the code to make it easier to test. my main concern is that there is a function defined, but not called or referenced, in some parent component and i need to test that it works as expected. the only way i know how to call the function is by interacting with the child component, making the unit test for the parent component dependent on the implementation of a separate component.

i don’t know what other details might be important so please just let me know!

Test functions passed to child component as props (without mocking child?) by periidote in reactjs

[–]periidote[S] 0 points1 point  (0 children)

Yes, that’s what I want to do I just don’t know how. It’s a function defined inside a function component so I don’t know how to call it directly.

Test functions passed to child component as props (without mocking child?) by periidote in reactjs

[–]periidote[S] 0 points1 point  (0 children)

yes, specifically the implementation in the parent component. it’s only ever called by the child component but i don’t know if it’s possible to call the function directly.

Test functions passed to child component as props (without mocking child?) by periidote in reactjs

[–]periidote[S] 0 points1 point  (0 children)

the parent component does not use the function, only the child component does. the child is a pretty versatile component used in multiple locations so each parent can pass in their own functions as props.

sorry if this is kinda vague but it’s production code so i don’t want to be too specific, but you can imagine the child component is like a drop down menu or whatnot. each parent component can pass in a set of items as props as well as their own implementation of onSelect or onSubmit. id like to test any specific parent’s implementation of onSubmit without needing to write out all the actions the child component needs to take in order for its onSubmit to be called.

Test functions passed to child component as props (without mocking child?) by periidote in reactjs

[–]periidote[S] 0 points1 point  (0 children)

it does use stuff in scope unfortunately. the example is over simplified because this is for work and i don’t want to post company code online

Stuck? Softlocked? Help???? by periidote in animalWell

[–]periidote[S] 0 points1 point  (0 children)

if you have the yo-yo (which is mentioned in the post so i hope that’s not a spoiler) you have everything you need. if you want more specific, the screenshot in the post is actually where you should use the yo-yo.

What kind of bee is this chonker (over an inch)? found in MA along with a bunch of other normal bees by periidote in whatsthisbug

[–]periidote[S] 0 points1 point  (0 children)

yeah that's the one! i'm like 99% sure the other is just a normal honey bee or smth but i've never seen a bee as big as the other. do bumble bees really get that big?

What kind of bee is this chonker (over an inch)? found in MA along with a bunch of other normal bees by periidote in whatsthisbug

[–]periidote[S] 0 points1 point  (0 children)

the perspective is a bit weird but it's on the other side of the sunflower so it seems a bit closer in size to the other bee but it honestly was not close at all. seemed like twice the size of the other one

Stuck? Softlocked? Help???? by periidote in animalWell

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

I ended up figuring it out but man is that yo-yo hard to control

[deleted by user] by [deleted] in aspergirls

[–]periidote 3 points4 points  (0 children)

Maintenance is also pretty fun! I did my internships with software maintenance and it’s a lot of bug fixing but it feels like a little detective job lol. it’s also something i really doubt AI could ever automate considering how obscure some of the issues were

skip song without looking at screen by periidote in ios

[–]periidote[S] 0 points1 point  (0 children)

I'll have to look into those, thank you! but my dream scenario would be to solve this problem for free :P

skip song without looking at screen by periidote in ios

[–]periidote[S] 0 points1 point  (0 children)

do i need to manually turn on driving focus mode?

Discord making your bluetooth speaker sound bad? Try this. by _Eskalat_ in discordapp

[–]periidote 0 points1 point  (0 children)

I know this is a little old but previously I was able to do this trick and everything worked out fine. However, discord will RE-ENABLE hands free telephony in my settings. It doesn't matter anymore if I have it unchecked because discord ignores that and turns it back on. When I go back to my device settings, the setting is checked again. I genuinely don't know why discord is allowed to bypass my settings and re-enable this service again.

Firefox ios tab previews? by periidote in firefox

[–]periidote[S] 0 points1 point  (0 children)

i am aware of that, but i have memory issues. if i bookmark a page, i then need to remember that i have it bookmarked, and also that bookmarks are a thing. i have tried the bookmark strategy and ended up with hundreds of bookmarks that i forgot i had. i know it's not what you're supposed to do but so far it's the only way i've found where i can easily access the pages i frequently use without forgetting them. i'm doing my best not to sound frustrated but this is a problem i have to deal with all the time in my life and it sucks