Is there a way to avoid repeating $todo.data.todo.id
etc?
#1921
Unanswered
frederikhors
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I think I can use this but I don't know if is good enough (performances): const todos = operationStore();
query(todos);
$: data = $todos.data?.todos What do you think? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using the Svelte example in docs:
is there a way I can avoid to use
$todos.data.todos
?Sometimes I have a big object and I'm repeating
$todo.data.todo.id
,$todo.data.todo.name
etc.Something like:
Beta Was this translation helpful? Give feedback.
All reactions