Client Utils
This package hosts shared code between clients that use React.
@spring-mobility/types
?
Why is this separate from react
is required as a peerDependency
of the package. That means any time this package is imported, react
must be dependency
.
We can't combine this package with @spring-mobility/types
because we don't want to install react
on code that is running in a Node environment.
@spring-mobility/types
a peer dependency?
Why is This package uses SpringClient
which is defined in @spring-mobility/types
. SpringClient
should be a singleton on the client that is configured via SpringClient.configureClient
.
- [ ] Could we move
SpringClient
->client-utils
? -- Ah no, because other Node clients useSpringClient
, e.g.vatican
...
TODOs
- [ ] Rename this package from
client-utils
toreact-utils