bee-js icon indicating copy to clipboard operation
bee-js copied to clipboard

Hooks: explicit `undefined` values in `params`

Open Cafe137 opened this issue 3 years ago • 0 comments

For example, bee.uploadFile takes a name that is string | undefined.

When I pass undefined, I get that back in params, and have to filter out undefined entries as a workaround.

This may not be ideal, since a naive implementation to list all available params would cause wrong URLs:

http://localhost:1633/bzz?name=undefined

or

http://localhost:1633/pss/send/A/ffff?recipient=undefined

Cafe137 avatar Jul 26 '21 19:07 Cafe137