-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot change pusher
or puller
after initialization
#685
Comments
@grgbkr think this was fallout of some refactoring you did. Sorry there was no sufficient coverage to catch this. |
Did not realize this was part of the API. @aboodman What is the use case for changing pusher or puller after initialization? I'm sure I can fix this, but am wondering if its better to just remove this part of the API, and make these be provided at time of constructing Replicache. |
I think we had a use case for changing some other configuration (maybe some of the rate limiting controls) and decided we may as well make the entire config interface mutable. I can't remember anything specific to pusher/puller -- maybe @arv does. I think we just thought the API was more consistent thing way. I think it's clear that given I guess I don't have a strong opinion here. I do like removing things we don't have a clear need for as it constrains future development. |
I went through all the options at one point thinking which ones must be readonly to keep semantics sane. Everything else was made read-write to allow flexibility. |
Let me see if i can support it without overly complicating the code. |
This was easy enough to fix without changing the API. |
I think this is a regression in 8.0, but I'm not sure:
The pusher and puller impls won't get called because we create a
NullConnectionLoop
at startup and it is never changed. I think it might work OK if you put a no-op pusher/puller in there instead though.The text was updated successfully, but these errors were encountered: