#Strongly Typed Actors

1 messages · Page 1 of 1 (latest)

broken abyss
#

What is the current preferred method for propagating strong typing through an actor reference. I’ve tried both ActorRef and ActorRefFrom, but neither propagate the typing on the actor’s context object. Looks like ActorRefWithDeprecatedState may accomplish my goal, but with the term “deprecated” in there I’m wary.

Ultimately, I’m passing the reference to useActor and want to context to be strongly typed.

safe eagle
#

ActorRefFrom works for me, not sure how you're trying to use it

ActorRefFrom<MyMachine>
gilded flame
#

I'm having issues with accessing my actor also and correct typing, though not using the useActor react (i have used that in the past and it works fine)

#

I seem to end up with ActorRefWithDeprecatedState also

#

No matter what i do

#

i think mine is caused by the fact my actors in context arent always there, and can be null