Danielius
Danielius
Explore posts from servers
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
i think i will opt for the something like this for now ig:
const [saved, setSaved] = createSignal(false);

createEffect(() => {
if(!jsonData.loading) setSaved(true);
});
createEffect(() => {
jsonData();
setSaved(false);
});
const [saved, setSaved] = createSignal(false);

createEffect(() => {
if(!jsonData.loading) setSaved(true);
});
createEffect(() => {
jsonData();
setSaved(false);
});
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
take a look ^
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
something strage is going on with this function
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
i do infact have the latest version....
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
ye... im honestly lost
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
dang
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
the lib is added to the import map
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
btw, unrelated bu how do i make the libs i import in solid playground have types....
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
ok
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
No description
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
No description
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
@REEEEE do think this is a problem with createWritableMemo and how im always returning false?
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
true !== false why tf is this not responding...
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
also with this i still dont get a side effect after saved is ran after updating jsonData (after its been initialised already)
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
wdym?
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
i assume something like this might work instead 🤔
createEffect(() => {
if (!jsonData.loading) setSaved(true);
});
createEffect(() => {
if (!jsonData.loading) setSaved(true);
});
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
ReferenceError, assuming its for setSaved
61 replies
SSolidJS
Created by Danielius on 8/3/2024 in #support
memo is rerun but any side effects subscribed are'nt reran
once, as expected
61 replies