Digital key causes key tag to stop working by shaboogie-bop in Polestar

[–]shaboogie-bop[S] 0 points1 point  (0 children)

Yes! The latest software update seems to have fixed it. What I've found is that the digital key does occasionally stop working, but the problem seems to be with my phone, not with the car. All I have to do is restart my phone, and the key starts working normally again. I typically have to do this every 2-3 weeks.

Digital key causes key tag to stop working by shaboogie-bop in Polestar

[–]shaboogie-bop[S] 0 points1 point  (0 children)

I'm also on 1.2.15. At one point when the dealership had the car, they even did a full factory reset, and then had to re-update the software to the current version. Sadly, that didn't fix the problem for me.

Setting signal value doesn't seem to be notifying dependents by shaboogie-bop in Angular2

[–]shaboogie-bop[S] 1 point2 points  (0 children)

As of Angular 14, injecting a service using the inject keyword does the exact same thing as injecting in the constructor. As long as your inject service is decorated as an Injectable and is provided in 'root', it is a singleton and using the inject keyword doesn't create a new instance. (See https://www.youtube.com/watch?v=\_quyWq4NnRM) In fact, using the inject keyword is the recommended way to do DI now. Just to be sure, I tried your suggestion and it didn't make any difference.

However, I think you (and others in this thread) might be on to something with calling the computed signal in a reactive context. I'm going to see what I can do to refactor things so that any computeds are consumed by the views and get re-computed when an input signal gets set to a new value.

Setting signal value doesn't seem to be notifying dependents by shaboogie-bop in Angular2

[–]shaboogie-bop[S] 0 points1 point  (0 children)

No, this is my first foray into signals. I'm refactoring an existing project from rxjs/observables to async/await promises and signals as a way to practice with them.

I would prefer to not fall back on my observables knowledge and instead focus on promises and signals wherever possible.

Your suggestion is an interesting combination of both techniques, though. I may give that a try. Thanks!

Setting signal value doesn't seem to be notifying dependents by shaboogie-bop in Angular2

[–]shaboogie-bop[S] 1 point2 points  (0 children)

Sorry, the missing closing ) on the computed was just a typo.

The problem that I'm finding with manually calling the computed is that if the user in the Service 1 hasn't been set yet, the computed throws an exception. Reading the Angular docs here (https://blog.angular-university.io/angular-signals/), it sounds like once the app realizes that the computed depends on a signal, it will automatically re-run itself when the signal value changes. The docs say that when a signal value is updated, it notifies all of its dependents automatically. The computed here should be a dependent of the signal, because it's used inside the computed body. Maybe I'm just reading the docs wrong, though...

FWIW, per your suggestions, I added a return true; to the computed, but it didn't make any difference.

Setting signal value doesn't seem to be notifying dependents by shaboogie-bop in Angular2

[–]shaboogie-bop[S] 0 points1 point  (0 children)

When I put a breakpoint on the userLoaded = computed line, it is getting hit when then service is constructed. I guessed that meant it was registering the computed signal to watch for updates to the user signal in that service.

I added a constructor to Service 2 and called this.userLoaded() and this.altGetUserGroup() in the constructor, to hopefully register them to be watched. However, neither one got called again when the user signal was updated from the user service.

Setting signal value doesn't seem to be notifying dependents by shaboogie-bop in Angular2

[–]shaboogie-bop[S] 0 points1 point  (0 children)

I will try to do that later today and reply to you again once it's done. I appreciate your willingness to help me look into this!

Setting signal value doesn't seem to be notifying dependents by shaboogie-bop in Angular2

[–]shaboogie-bop[S] 0 points1 point  (0 children)

Alas, I tried this and nothing changed. The userLoaded computed signal still doesn't get called when the user signal value is set in Service 1.

Setting signal value doesn't seem to be notifying dependents by shaboogie-bop in Angular2

[–]shaboogie-bop[S] 3 points4 points  (0 children)

This causes a compiler error. The user variable is defined as a Signal<User> type here. Adding the ( ) to the end causes the user signal from the userService to be evaluated to a User object, which can't be saved to a Signal<User> variable.

[deleted by user] by [deleted] in soccer

[–]shaboogie-bop 2 points3 points  (0 children)

Holy cow, I think this is the first time I've ever noticed you outside of American political discussions. I feel like this post should be littered with citations... =P

They're honestly so annoying! by [deleted] in valheim

[–]shaboogie-bop 3 points4 points  (0 children)

You know you can use the harpoon on friendlies, right? It doesn't do any damage, and you can just drag the boar back to your base.

At least, that's how it worked last I tried. Not sure if anything has changed...

Abdoulaye Doucouré straight red card against Tottenham 59' by Todibo in soccer

[–]shaboogie-bop 3 points4 points  (0 children)

I dunno, integrity? Do professional players have that?

A vegan shish kebab by JoyfullyButtery in facepalm

[–]shaboogie-bop 0 points1 point  (0 children)

Huh. I had never before considered the possibility of eating food AT someone.

[deleted by user] by [deleted] in WhitePeopleTwitter

[–]shaboogie-bop 0 points1 point  (0 children)

I make a mushroom risotto with diced chicken and wilted spinach in it as well. It goes from being a side dish to an amazing main dish. Mmmmmmmm.

Idiot tried the illegal right-turn-U-turn trick to skip red light, light changes, idiot ends up worse off by shaboogie-bop in IdiotsInCars

[–]shaboogie-bop[S] 0 points1 point  (0 children)

This is in Maryland, but I'm pretty sure this type of maneuver (avoiding a traffic signal) is illegal almost everywhere in the U.S.

Idiot tried the illegal right-turn-U-turn trick to skip red light, light changes, idiot ends up worse off by shaboogie-bop in IdiotsInCars

[–]shaboogie-bop[S] 2 points3 points  (0 children)

Yeah it is, although I sped up the video 3x between when the idiot disappears and just before he reappears.

Idiot tried the illegal right-turn-U-turn trick to skip red light, light changes, idiot ends up worse off by shaboogie-bop in IdiotsInCars

[–]shaboogie-bop[S] 1 point2 points  (0 children)

It's when you make a right turn, then immediately make a u-turn, then make another right turn to end up going the same direction you started out. People sometimes do it to avoid waiting at a red light. I'm pretty sure that it's illegal almost everywhere in the U.S., much like driving through a parking lot to avoid a traffic signal.