chore: trpc 11.x support (resolves #184)#194
Conversation
|
@mat-sz I tried the basic-react example from your fork. One thing that I noticed is, that I loose all state in the components upon HMR. To demonstrate this I simply added a counter to the Why is the counter reset upon every safe of the file? Is there a way to preserve it? |
|
@mat-sz great! will this work with tRPC 11 Streaming? (uses a batchStreamLink) |
|
Just bumping this issue to see if there are any updates! Also more than happy to test and/or help! |
|
@enricoros @spencekim Potentially, Blob support might be a problem, I will need to look into that. |
|
Thanks for the answer @mat-sz, I understand now. I'd need to change some logic to be able to return an async generator form the ipc link, I think. |
|
Hello, why not merge yet? |
|
Any updates here? |
|
Folks, TRPC 11 is in beta and may have breaking API changes. I am not going to force consumers of electron-trpc onto the TRPC beta line. There is an electron-trpc rewrite in progress which will be at least compatible with TRPC 11, and may be backwards compatible. It may be that the 0.x version of electron-trpc will be maintained for some time for TRPC users pre-11. |
|
TRPC V11 is now stable. See the blog post. |
|
I think @jsonnull has shifted his focus from his library. Big thanks to him for his effort to create it right now I am using @mat-sz |
|
when is lil bro merging this 😳😳😳 |
|
Any update about merge this fix? |
Few things worth noting:
package.jsonwill need to be replaced (next->>=11.0.0) for both@trpc/clientand@trpc/serverindevDependencies. Otherwise tRPC 12.x unstable releases might be installed (whenever they start existing).