You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Custom hooks for the application is an interface to handle all the logic related to application management. This enables the component/hooks to use applications logic from one single place
Acceptance Criteria
Fetch list of applications, the list should be a mix of user applications and default application fetched from the server
Enable ‘isPin’ flag for default applications from useApplicationsPin hooks then sort the list by pinned priority
Enable memoization for applications
Update status by fetching status from the server
Allow users to add an application to the store by setApplication method
Allow users to fetch a specific application by chainId via getApplicationByChainId
Allow users to remove specific application by chainId from local storage via deleteApplicationByChainId
If the current application is same as the selected application for remove, we need set Lisk as current application via useCurrentApplication
Add required unit tests
Additional Information
Suggested component name useApplicationsManagement
Create reducer for blockchain application management and combine them as blockchainApplications state.blockChainApplications.management
function useApplicationManagement() {
return {applications, setApplication, deleteApplicationByChainId, getApplicationByChainId};
}
Description
A Custom hooks for the application is an interface to handle all the logic related to application management. This enables the component/hooks to use applications logic from one single place
Acceptance Criteria
useApplicationsPin
hooks then sort the list by pinned prioritysetApplication
methodgetApplicationByChainId
deleteApplicationByChainId
useCurrentApplication
Additional Information
useApplicationsManagement
state.blockChainApplications.management
blocked by #4373, #4357
The text was updated successfully, but these errors were encountered: