mvpopuk
Explore posts from serversRoles and permissions
What I want is the ability to assign roles and permisions to users so that they can only access certain parts of the app. What would be the recommended way to do this ? I was looking into
Shield
plugin but I'm curious what would be a recommended way to do this. Thank you.3 replies
two forms one page
I'm on the
edit
route and I want to have a form that I use for adding comments. And for that form I need a button to be able to submit the form. Then the page also has the save changes action. I can't seem to find a way to add the comments form as an individual form that can be submitted individualy3 replies
Database notifications not working
I created an Exporter and it seems to be working fine (meaning I have the csv file on the public disk) but I never get the notification that the download is complete and a link to download like it is suppose to work. I do not have any errors in the logs or anywhere else, the job dispatches and is completed fine, I do have the notification in the database but never gets pulled into the notifications panel
59 replies
TTCTheo's Typesafe Cult
•Created by mvpopuk on 5/28/2024 in #questions
import { api } from '~/utils/api';
So before I was able to import
import { api } from '~/utils/api';
and do something like api.something.method.useMutation....
. I now started a new project with T3 stack after a long time of not touching tRPC / Next.js and I am using app router
and I can no longer use utils/api
. What am I missing ? Thanks!4 replies