Antebios
How do I refresh data without reloading the page
It worked!! I did this all on the client side with no server-side code needed!!
So within the client code that does the update
I also created a refresh function:
So when I update I call
Submit
and it updates the record, uses the returned value of ownerId
to invalidate and then refresh the data table successfully. It looks great.
And I added a refresh button to call refreshTableData
that invalidates the whole results and it refreshes the data perfectly without needing a page refresh!!!17 replies
How do I refresh data without reloading the page
I want to know how to refresh the
projects
call with a refresh button on the page without needing to reload the page. Clicking to a different page and back also refreshes the data, of course.17 replies
How to process and save Uploaded File on server side
Update: I figured it out myself!!! This is just my proof-of-concept code:
Client code:
Server code: ~/lib/utility.ts
I did a test wit both text and binary file, and then compared to the original files and they all matched.
2 replies
DTDrizzle Team
•Created by Quea on 6/7/2023 in #help
onConflictDoUpdate array
If you want the actual syntax I do this:
19 replies
DTDrizzle Team
•Created by Quea on 6/7/2023 in #help
onConflictDoUpdate array
I ended up doing one by one.
19 replies
DTDrizzle Team
•Created by volks on 5/29/2023 in #help
Postgres's Serial column type doesn't automatically have a default
Thank you! I thought I was going crazy, but I have the same issue.
6 replies