You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In HTTPDigestAuth there's a _thread_local value that's assigned but then never used:
constructor(username,password){this.username=usernamethis.password=password//# Keep state in per-thread local storagethis._thread_local={}this.init_state()}
I'm trying to decide if it's just left over from something or if it's there to trigger some behavior in paw.
I'm leaning towards just unused since there's also some other ones:
@drewish_thread_local was just an experiment, and didn't go anywhere. Same for num_401_calls, init and pos, they are all unused. Sorry for the left dead code.
Unfortunately, for now there's no way to cache a value between evaluations of dynamic values. The Dynamic Value is instantiated and destroyed on each run, even the whole JS context is destroyed after a run. It was designed that way to keep the memory footprint low + make sure on each run we get a fresh state which is nicer for development and to make sure users don't get stuck on a broken state. This means dynamic values (and extensions in general) have no way to cache values.
We're working on a kind of "local storage" / "cache" mechanism for Paw extensions, which may be what you need.
I'm keeping the issue open so we remember to kill this dead code.
In HTTPDigestAuth there's a
_thread_local
value that's assigned but then never used:I'm trying to decide if it's just left over from something or if it's there to trigger some behavior in paw.
I'm leaning towards just unused since there's also some other ones:
Has a
init
,pos
, andnum_401_calls
and none of them seem to be read.The text was updated successfully, but these errors were encountered: