Use query keeps loading #2054
Unanswered
danieludokike
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
from example.models import TodoItem
from reactpy import component, html
from reactpy_django.hooks import use_query
def get_items():
return TodoItem.objects.all()
@component
def todo_list():
item_query = use_query(get_items)
The above is the code snippet on use_query, it keeps writing loading... when used on my model.
Beta Was this translation helpful? Give feedback.
All reactions