Rody Davis

Results 418 comments of Rody Davis

First of all signals are only sync and the graph is meant only for synchronous operations. In a batch it is not a transaction and will update any values till...

Yep happy to add it to the docs!

Going to work on a section in the docs with approaches to async with signals. But updating some of my production apps and already learning some common patterns

What would be the behavior for signals with no buffer?

I think another solution could be this: https://github.com/maverick-js/signals?tab=readme-ov-file#onerror

That is correct it would only work for sync code. Another option is to improve the batch API. Current it is the following: ```dart T batch(BatchCallback callback) { ``` We...

This would not work for async code, but for sync signal this would be a nice way to rollback if needed.

Been thinking about this more, I think it would be better to use dart exception handling for this: ```diff import 'package:signals/signals.dart'; final age = signal(0); final doubleAge = computed(() =>...

Yeah I opened an issue because I started a fork. I also have added theme options too. I'll make some PRs soon. I have an app with a lot of...