Bluesky app fork with some witchin' additions 💫 witchsky.app
bluesky fork client

fix: Cannot clone a subclass of BskyAgent #43

merged opened by shi.gg targeting main
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:irs2tcoeuvuwj3m4yampbuco/sh.tangled.repo.pull/3mcpsf3dd4y22
+3
Diff #0
+3
src/state/session/agent.ts
··· 465 465 * other PDS-specific operations like preferences. 466 466 */ 467 467 export function pdsAgent<T extends BaseAgent>(agent: T): T { 468 + if ('cloneWithoutProxy' in agent && typeof agent.cloneWithoutProxy === 'function') { 469 + return agent.cloneWithoutProxy() as T 470 + } 468 471 const clone = agent.clone() as T 469 472 clone.configureProxy(null) 470 473 return clone

History

1 round 0 comments
sign up or login to add to the discussion
shi.gg submitted #0
expand 0 comments
pull request successfully merged