profile
viewpoint
Riza Fahmi rizafahmi @hacktiv8 @kodeid Jakarta https://rizafahmi.com Co-Founder at @hacktiv8 and @kodeid

hacktiv8/phase-0-activities 169

Hacktiv8 Phase 0 Activities

rizafahmi/awesome-speakers-id 123

Para developer keren asal Indonesia yang bisa diundang ke acara komunitas dan konferensi sebagai pembicara atau narasumber

randomscreencast/nama-gadungan 10

Pustaka kecil yang dapat membantu kamu untuk mendapatkan nama acak untuk data gadungan atau data dummy yang dapat digunakan untuk aplikasi dan database.

deeptechid/forem 7

diskusi.tech deployed version is on deeptechid/customized branch

pdpcid/site 3

Website information about this community.

hacktiv8/macmini 2

A shell script which turns Mac mini into an awesome web development machine.

rizafahmi/ama 2

Ask me anything!

hacktiv8/test-tantangan 1

Ini adalah contoh repo tantangan hacktiv8.com

kodeid-resources/podspace 1

Example code for React course for KODE

create barnchrizafahmi/webcomponents_in_svelte

branch : main

created branch time in 3 days

created repositoryrizafahmi/webcomponents_in_svelte

created time in 3 days

push eventrizafahmi/webcomponents_counter_app

Riza Fahmi

commit sha dfc1cbece550044945b6821f0ce0fa03eeaf871c

add readme

view details

push time in 3 days

created repositoryrizafahmi/webcomponents_vanilla

created time in 3 days

push eventrizafahmi/docker-compose-tutorial

Riza Fahmi

commit sha 498db109bface796ab4b094ec29f9e2d55afc949

Add nginx container

view details

push time in 8 days

push eventrizafahmi/docker-compose-tutorial

Riza Fahmi

commit sha 77f729422ad81fbfddc6e3ef1816f7991a802875

Finish docker compose

view details

push time in 8 days

create barnchrizafahmi/docker-compose-tutorial

branch : main

created branch time in 8 days

created repositoryrizafahmi/docker-compose-tutorial

created time in 8 days

Pull request review commentfeedloop/qore-sdk

Chore/docs example project js

 const shouldCacheOperation = (operation: QoreOperation) => {   return false; }; -const cacheExchange: Exchange = ({ forward, client }) => operationStream => {-  const resultCache = new Map<string, QoreOperationResult["data"]>();-  const sharedOpsStream = Wonka.share(operationStream);-  const hasCache = (operation: QoreOperation) => {-    return (-      (shouldCacheOperation(operation) && resultCache.has(operation.key)) ||-      !!operation.optimisticResponse-    );-  };-  const cachedStream = Wonka.pipe(-    sharedOpsStream,-    Wonka.filter(operation => hasCache(operation)),-    Wonka.map(-      (operation): QoreOperationResult => {+const cacheExchange: Exchange =

Oh kirain buat example. Jadi di remove aja? Ngga usah lah ya, udah keburu dipasang 😅

rizafahmi

comment created time in 13 days

PullRequestReviewEvent

push eventfeedloop/qore-sdk

Riza Fahmi

commit sha 69b851327fbc8c479e2fd469cd6cf1fe285ce8cd

Remove subscribe -> subscription

view details

Riza Fahmi

commit sha 23207bf29563fd44a697e57afb5b74631662ed0b

Remove some-task-id

view details

Riza Fahmi

commit sha 466ed9fd27fafa250d5c01d1511fcaa7719102e1

Add prettier and prettierrc

view details

push time in 13 days

PullRequestReviewEvent

Pull request review commentfeedloop/qore-sdk

Chore/docs example project js

 const shouldCacheOperation = (operation: QoreOperation) => {   return false; }; -const cacheExchange: Exchange = ({ forward, client }) => operationStream => {-  const resultCache = new Map<string, QoreOperationResult["data"]>();-  const sharedOpsStream = Wonka.share(operationStream);-  const hasCache = (operation: QoreOperation) => {-    return (-      (shouldCacheOperation(operation) && resultCache.has(operation.key)) ||-      !!operation.optimisticResponse-    );-  };-  const cachedStream = Wonka.pipe(-    sharedOpsStream,-    Wonka.filter(operation => hasCache(operation)),-    Wonka.map(-      (operation): QoreOperationResult => {+const cacheExchange: Exchange =

Belum, segera ditambahkan

rizafahmi

comment created time in 13 days

Pull request review commentfeedloop/qore-sdk

Chore/docs example project js

+ import client from "./qoreContext.js";++ let tasks = [];++ async function getData() {+   const { data, error } = await client+     .view("allTasks")+     .readRows(+       { offset: 0, limit: 10, order: "desc" },+       { networkPolicy: "cache-only" }+     )+     .toPromise();+   tasks = data.nodes;+ }++ async function handleLoadMore() {+   const operation = client+     .view("allTasks")+     .readRows(+       { offset: 0, limit: 10, order: "desc" },+       { networkPolicy: "network-and-cache", pollInterval: 5000 }+     );++   operation.subscribe(({ data }) => {+     tasks = data.nodes;+   });++   await operation.fetchMore({ offset: tasks.length, limit: 10 });+   // new items are being pushed to allTasks+   render();+ }++ window.addEventListener("load", async function () {+   await getData();+   const operation = client+     .view("allTasks")+     .readRows(+       { offset: 0, limit: 10, order: "desc" },+       { networkPolicy: "cache-only", pollInterval: 5000 }+     );+   let subscribe;

Oh iya 🙈

rizafahmi

comment created time in 13 days

PullRequestReviewEvent

push eventfeedloop/qore-sdk

Riza Fahmi

commit sha e40a489c8e9c8f30c5b0bba7d5f9c382673a0496

Add *.log to gitignore

view details

push time in 13 days

Pull request review commentfeedloop/qore-sdk

Chore/docs example project js

+ import client from "./qoreContext.js";++ let tasks = [];++ async function getData() {+   const { data, error } = await client+     .view("allTasks")+     .readRows(+       { offset: 0, limit: 10, order: "desc" },+       { networkPolicy: "cache-only" }+     )+     .toPromise();+   tasks = data.nodes;+ }++ async function handleLoadMore() {+   const operation = client+     .view("allTasks")+     .readRows(+       { offset: 0, limit: 10, order: "desc" },+       { networkPolicy: "network-and-cache", pollInterval: 5000 }+     );++   operation.subscribe(({ data }) => {+     tasks = data.nodes;+   });++   await operation.fetchMore({ offset: tasks.length, limit: 10 });+   // new items are being pushed to allTasks+   render();+ }++ window.addEventListener("load", async function () {+   await getData();+   const operation = client+     .view("allTasks")+     .readRows(+       { offset: 0, limit: 10, order: "desc" },+       { networkPolicy: "cache-only", pollInterval: 5000 }+     );+   let subscribe;

eh, bawahnya lupa dihapus const nya 😅

rizafahmi

comment created time in 13 days

PullRequestReviewEvent

push eventfeedloop/qore-sdk

Riza Fahmi

commit sha f998a9a9fd584b9289562aede2ebdbbd98d94b85

Update subscription example

view details

push time in 14 days

PullRequestReviewEvent

Pull request review commentfeedloop/qore-sdk

Chore/docs example project js

+ import client from "./qoreContext.js";++ let tasks = [];++ async function getData() {+   const { data, error } = await client+     .view("allTasks")+     .readRows(+       { offset: 0, limit: 10, order: "desc" },+       { networkPolicy: "cache-only" }+     )+     .toPromise();+   tasks = data.nodes;+ }++ async function handleLoadMore() {+   const operation = client.view("allTasks").readRows({ offset: 0, limit: 10 });++   operation.subscribe(({ data }) => {+     tasks = data.nodes;+   });++   await operation.fetchMore({ offset: tasks.length, limit: 10 });+   // new items are being pushed to allTasks+   render();+ }++ window.addEventListener("load", async function () {+   await getData();+   const operation = client+     .view("allTasks")+     .readRows(+       { offset: 0, limit: 10, order: "desc" },+       { networkPolicy: "cache-only" }+     );++   const subscription = operation.subscribe(({ data, error, stale }) => {+     if (data && !stale) {+       tasks = data.nodes;+       subscription.unsubscribe();

Ok, thanks! Bisa nih. Tapi pake if, blm bisa pake optional chaining, maklum vanilla, wkwk

rizafahmi

comment created time in 14 days

push eventfeedloop/qore-sdk

Riza Fahmi

commit sha f79ea0e30f2888322f354c66d94253be2758f4ed

Finishing javascript example

view details

push time in 14 days

PullRequestReviewEvent

Pull request review commentfeedloop/qore-sdk

Chore/docs example project js

+ import client from "./qoreContext.js";++ let tasks = [];++ async function getData() {+   const { data, error } = await client+     .view("allTasks")+     .readRows(+       { offset: 0, limit: 10, order: "desc" },+       { networkPolicy: "cache-only" }+     )+     .toPromise();+   tasks = data.nodes;+ }++ async function handleLoadMore() {+   const operation = client.view("allTasks").readRows({ offset: 0, limit: 10 });++   operation.subscribe(({ data }) => {+     tasks = data.nodes;+   });++   await operation.fetchMore({ offset: tasks.length, limit: 10 });+   // new items are being pushed to allTasks+   render();+ }++ window.addEventListener("load", async function () {+   await getData();+   const operation = client+     .view("allTasks")+     .readRows(+       { offset: 0, limit: 10, order: "desc" },+       { networkPolicy: "cache-only" }+     );++   const subscription = operation.subscribe(({ data, error, stale }) => {+     if (data && !stale) {+       tasks = data.nodes;+       subscription.unsubscribe();

@rrmdn ini subscription.unsubscribe() error kemungkinan besar karena subscription blm di inisialisasi. Hoisting issue ya kayaknya? Ada ide gak gimana solusinya? Ini contoh dari docs.

Pesan errornya: ReferenceError: Cannot access 'subscription' before initialization

rizafahmi

comment created time in 14 days

PR opened feedloop/qore-sdk

Chore/docs example project js
+32927 -388

0 comment

47 changed files

pr created time in 14 days

create barnchfeedloop/qore-sdk

branch : chore/docs-example-project-js

created branch time in 14 days

create barnchrizafahmi/webcomponents_counter_app

branch : main

created branch time in 19 days

created repositoryrizafahmi/webcomponents_counter_app

created time in 19 days

Pull request review commentfeedloop/qore-sdk

Chore/docs copy update

+import { useState } from "react";+import Cookies from "js-cookie";+import { Link } from "react-router-dom";++import qoreContext from "./qoreContext";+import Form from "./Form";++const Component = () => {+  const client = qoreContext.useClient();+  const { user } = qoreContext.useCurrentUser();++  async function handleLogin() {+    debugger;

Eh iya maaf, lagi nge-debug memang, ngga bisa authenticate 🙈

rizafahmi

comment created time in 20 days

PullRequestReviewEvent
more