confused about primitives(useEffect,on,createComputed)
I‘m trying to create a primitive for synchronize the search params with signal. I tried different methods, all of them works as expected. I started to think of the apis and got confused.
1. why some of them run twice?
2. when to use on with effect?
3. tracking signal and do some updates, shoud I just use computed?
createEffect in this case run twicecreateEffect with on run oncecreateComputed run twice1. why some of them run twice?
2. when to use on with effect?
3. tracking signal and do some updates, shoud I just use computed?
