Poyraz
Poyraz
Explore posts from servers
PD🧩 Plasmo Developers
Created by Poyraz on 2/21/2024 in #👟framework
useStorage makes extension window tiny.
every time i use the useStorage hook my windows resizes it's driving me crazy const [datas] = useStorage("auth_session") whenever i use this code my window becomes 1px by 1px I have tried using different browsers, the error vanishes when i remove that one line of code
2 replies
DTDrizzle Team
Created by Poyraz on 5/29/2023 in #help
subRows.map is not a function
I am getting a subRows.map is not a function error when adding the "with" parameter to my relational queries. here is my schema;
export const users = pgTable("users", {
id: serial("id").primaryKey(),

name: text("name"),
role: text("role").default("user"),
});

export const usersRelations = relations(users, ({ many }) => ({
parties: many(parties),
}));

export const parties = pgTable("parties", {
id: serial("id").primaryKey(),
partyName: text("party_name"),
authorId: integer("author_id"),
});

export const postsRelations = relations(parties, ({ one }) => ({
author: one(users, {
fields: [parties.authorId],
references: [users.id],
}),
}));
export const users = pgTable("users", {
id: serial("id").primaryKey(),

name: text("name"),
role: text("role").default("user"),
});

export const usersRelations = relations(users, ({ many }) => ({
parties: many(parties),
}));

export const parties = pgTable("parties", {
id: serial("id").primaryKey(),
partyName: text("party_name"),
authorId: integer("author_id"),
});

export const postsRelations = relations(parties, ({ one }) => ({
author: one(users, {
fields: [parties.authorId],
references: [users.id],
}),
}));
58 replies